You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the best case scenario, it should automatically be able to determine whether the title text should be displayed left-to-right or right-to-left and format it as such, without the use of a query parameter. The lang query parameter cannot necessarily be relied on since videos with English titles probably should not be right-aligned.
A library or a simple RTL character count vs LTR character count could be used to determine which direction the title should be formatted in.
The x offset should be {{ width - 10 if rtl_title else 10 }}. The direction of the text should be set to {{ 'rtl' if rtl_title else 'ltr' }}.
rtl_title is a made up variable that will need to be created based on the direction of the title text (not the same as the existing rtl which is for the stats)
The text was updated successfully, but these errors were encountered:
Description
In the best case scenario, it should automatically be able to determine whether the title text should be displayed left-to-right or right-to-left and format it as such, without the use of a query parameter. The lang query parameter cannot necessarily be relied on since videos with English titles probably should not be right-aligned.
A library or a simple RTL character count vs LTR character count could be used to determine which direction the title should be formatted in.
Actual output
https://ytcards.demolab.com/?id=dQw4w9WgXcQ&title=לורם%20איפסום%20דולור%20סיט%20אמט,%20קונסקטורר%20אדיפיסינג%20אלית&lang=he×tamp=1693000000&max_title_lines=2&width=250&border_radius=5
Expected output
The x offset should be
{{ width - 10 if rtl_title else 10 }}
. The direction of the text should be set to{{ 'rtl' if rtl_title else 'ltr' }}
.rtl_title
is a made up variable that will need to be created based on the direction of the title text (not the same as the existingrtl
which is for the stats)The text was updated successfully, but these errors were encountered: