aldhfere990 3 Posted November 15, 2023 Share Posted November 15, 2023 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 Link to comment Share on other sites More sharing options...
aldhfere990 3 Posted November 15, 2023 Author Share Posted November 15, 2023 This is my post on infuse Also with emby tvos To watch the discussion https://community.firecore.com/t/problem-subtitles-arabic-rtl-look-at-the-pictures/44740/12 Link to comment Share on other sites More sharing options...
aldhfere990 3 Posted November 15, 2023 Author Share Posted November 15, 2023 (edited) 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 November 15, 2023 by aldhfere990 Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 16, 2023 Share Posted November 16, 2023 Hi, how does it look when playing in the Emby Apple TV app? Link to comment Share on other sites More sharing options...
aldhfere990 3 Posted November 17, 2023 Author Share Posted November 17, 2023 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 Link to comment Share on other sites More sharing options...
Luke 37179 Posted November 19, 2023 Share Posted November 19, 2023 OK yes it's something we can look into. Thanks. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now