Wiktionary talk:Picture dictionary/ur:map/Middle East

From Wiktionary, the free dictionary
Latest comment: 1 year ago by نعم البدل in topic sc tags
Jump to navigation Jump to search

sc tags[edit]

@Surjection - sorry about reverting your edit on another page, I didn't see your edit summary. The tag seems to prevent the Nastaliq font from displaying and also messes up the font size? نعم البدل (talk) 11:41, 6 September 2022 (UTC)Reply

It's the opposite. The |sc= should be required for the font to show up, and is a requirement either way, since otherwise it will treat the text as Latin script, which it obviously isn't. — SURJECTION / T / C / L / 11:55, 6 September 2022 (UTC)Reply
@Surjection: Then it seems that the |sc tag conflicts with the way Apple devices handles the Nastaliq font. Apple devices have the Nastaliq font as default for the Urdu language so |lang-ur or even |lang-ur|sc=Arab doesn't make a difference, but |sc=ur-Arab for whatever reason reverts it to the default Arabic font.
Come to think of it, the Nastaliq font never used to appear for me on Windows either on English Wiki projects despite having multiple Nastaliq fonts installed. نعم البدل (talk) 12:11, 6 September 2022 (UTC)Reply
What the |sc=ur-Arab is add the correct class to the text so that its script is ur-Arab and not Latn. MediaWiki:Common.css on the other hand has several setups for any text in ur-Arab, which will apply to all text tagged with that script (so basically all correctly formatted text in Urdu entries, etc.). If Apple has a Nastaliq font and it should be used, it should be added there. — SURJECTION / T / C / L / 12:16, 6 September 2022 (UTC)Reply
@Surjection: I don't have permissions to edit the page, but I see a potential issue perhaps which is that ur-Arab's font-family on line 813 is set to the default Arabic fonts, so ur-Arab should probably be removed from there, and else where none of the popular Nastaliq fonts (like Urdu Typesetting, Noto Nastaliq Urdu, Jameel Noori Nastaleeq, Alvi Lahori Nastaleeq) are even included. نعم البدل (talk) 12:22, 6 September 2022 (UTC)Reply
If you know CSS, you could try writing your own rules on your own copy of common.css and test them there. In either case, any changes to the global common.css should probably be discussed on MediaWiki talk:Common.css, ideally also with other Urdu editors. — SURJECTION / T / C / L / 12:30, 6 September 2022 (UTC)Reply
Also, there is a later font list for ur-Arab on line 854 (855), which takes precedence over the one on line 811 (813). — SURJECTION / T / C / L / 12:35, 6 September 2022 (UTC)Reply
@Surjection: Yeah, I also saw line 854. Weirdly, when I created the css file with my edits, the |sc=ur-Arab strings no longer used the Arabic fonts, but it didn't use my fonts either, instead it used NafeesWeb which is something that Wikiprojects uses, however nothing on CSS file indicates that NafeesWeb has been assigned. Is there something else that causes the Urdu strings to use Nafeesweb? نعم البدل (talk) 12:42, 6 September 2022 (UTC)Reply
I can't come up with anything. Try removing everything from your common.css except for the ur-Arab related rules - and if it still doesn't work, try adding !important to the ur-Arab font rules (like font-family: ... !important;). — SURJECTION / T / C / L / 12:52, 6 September 2022 (UTC)Reply
@Surjection: Okay, so it's working (without the !important parameter), the cache is causing the issue, even though it's disabled, and it refreshes after making any edit (on both the Wiktionary talk:Picture dictionary/ur:map/Middle East as well as the page it's being used on, for instance لبنان) - but it's working on both Windows and Mac nonetheless. نعم البدل (talk) 13:02, 6 September 2022 (UTC)Reply
Is the matter then basically just adding 'Jameel Noori Nastaleeq', 'Alvi Lahori Nastaleeq', 'Noto Nastaliq Urdu', 'Urdu Typesetting', to the list of fonts for ur-Arab (and also pa-Arab, apparently?) I don't think there are any existing Nastaliq fonts set up for Urdu right now, but I guess perhaps there should be. — SURJECTION / T / C / L / 13:15, 6 September 2022 (UTC)Reply
@Surjection: Yes pretty much, although I'm still contemplating whether to keep Alvi Nastaleeq and (to a lesser extent) Jameel Noori Nastaleeq - because I believe none of those two are pre-installed on any kind of system at the moment. pa-Arab also has to be included since Punjabi (Shahmukhi) uses the same style as Urdu. نعم البدل (talk) 14:41, 6 September 2022 (UTC)Reply
The issue with Noto Nastaliq Urdu (created by Google) is that it enlarges the text by quite a bit, whereas Urdu Typesetting and Jameel Noori Nastaleeq don't, which could be an issue for templates/maps/lists etc. Edit: And Urdu Typesetting (Microsoft's) doesn't show the correct Urdu numerals :/ نعم البدل (talk) 15:03, 6 September 2022 (UTC)Reply