Jump to content

Problem subtitles arabic ( RTL ) Look at the pictures


aldhfere990

Recommended Posts

aldhfere990

hello
Welcome

First of all, I must clarify

I tried the emby app and the infuse app

There is no application in tvos that supports reading subtitles programmatically (RTL). Why don’t we put an option in the settings to activate RTL, just like the MX Player application did on Android TV?

 

Emby is the first application to support this, and it is very easy programmatically

Everyone knows that the Arabic language is spoken by more than 22 countries in the world, and everyone knows that it is spoken from right to left, not from left to right.

There are some subtitles of the infuse app where the point is . And - inconsistent

For example, the point is on the right, and it should be the last on the left

Likewise - it should be the first line on the right, but in Infuse it should be the last on the left

But the question mark? Works fine and finally comes to the left

(This problem occurs with some, but not all, subtitle.)

Two experiments were done on the mx player application, and it fully supports RTL

And do an experiment on infuse

Look the difference
 

https://www.opensubtitles.org/en/subtitles/8582356/flower-of-evil-missing-thumbnails-ar

 

Note: This problem does not occur with all movie subtitles…it only occurs with some

IMG_9118.jpeg

IMG_9119.jpeg

IMG_9120.jpeg

IMG_9121.jpeg

IMG_9122.jpeg

Link to comment
Share on other sites

aldhfere990
These codes are just an idea and nothing more

Example

swift
func reverseSrtLines(srtText: String) -> String {
    let entries = srtText.split(separator: "\n\n")
    let reversedEntries = entries.map { entry in
        let lines = entry.split(separator: "\n")
        let reversedLines = lines.map { line in
            let characters = Array(line)
            let reversedCharacters = Array(characters.reversed())
            return String(reversedCharacters)
        }
        return reversedLines.joined(separator: "\n")
    }
    return reversedEntries.joined(separator: "\n\n")
}
 

Edited by aldhfere990
Link to comment
Share on other sites

aldhfere990
Like the pictures in the beginning of the topic
It is similar to infuse in terms of the problem

See mx player android tv provides this option

 

 

IMG_9150.jpeg

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...