Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IGAPP-1372: Support RTL for POI Title on Map #2295

Closed
jira-to-github-migrator bot opened this issue Aug 12, 2023 · 6 comments · Fixed by #2450
Closed

IGAPP-1372: Support RTL for POI Title on Map #2295

jira-to-github-migrator bot opened this issue Aug 12, 2023 · 6 comments · Fixed by #2450
Assignees
Labels
blocked Native Affects the native project ready Story Web Affects the web project
Milestone

Comments

@jira-to-github-migrator
Copy link

jira-to-github-migrator bot commented Aug 12, 2023

f1sh1918 - 7.8.2023, 10:08:48

As a user with a rtl language i would like to have the title of the pois displayed on the map

Acceptance Criteria

  • Display the title of the poi in rtl language

 

Note:

  • add arabic font glyphs to the mapstyles repo

https://github.com/digitalfabrik/integreat-maplibre-style

 

 

Environment: -
Linked issues:

@jira-to-github-migrator jira-to-github-migrator bot added Native Affects the native project Story Web Affects the web project labels Aug 12, 2023
@jira-to-github-migrator jira-to-github-migrator bot added this to the POI milestone Aug 12, 2023
@jira-to-github-migrator
Copy link
Author

steffenkleinle - 9.8.2023, 14:25:56

<~andreas.fischer> is this ready/blocked/are you working on this?

f1sh1918 - 9.8.2023, 14:43:33

It's ready and no

@LeandraH LeandraH added the ready label Aug 23, 2023
@f1sh1918 f1sh1918 self-assigned this Aug 23, 2023
@f1sh1918
Copy link
Contributor

f1sh1918 commented Aug 23, 2023

Hi @maxammann,

We would have to add arabic font-glyphs to support that feature.
Right now we included a submodule repo inside https://github.com/digitalfabrik/integreat-maplibre-style that doesn't have them.
What do you think about providing the glyphs by ourselfs?

Just found this repo for creating them: https://github.com/openmaptiles/fonts

just created a zip file with pbf that includes. So we could probably cover all languages
I think we can reduce the sources by the fonts we need to minimize the glyphs

  {
    "name": "Noto Sans Regular",
    "sources": [
      "NotoSans-Regular.ttf",
      "NotoNaskhArabic-Regular.ttf",
      "NotoSansArmenian-Regular.ttf",
      "NotoSansBalinese-Regular.ttf",
      "NotoSansBengali-Regular.ttf",
      "NotoSansCJKtc-Regular.otf",
      "NotoSansDevanagari-Regular.ttf",
      "NotoSansEthiopic-Regular.ttf",
      "NotoSansGeorgian-Regular.ttf",
      "NotoSansGujarati-Regular.ttf",
      "NotoSansGurmukhi-Regular.ttf",
      "NotoSansHebrew-Regular.ttf",
      "NotoSansJavanese-Regular.ttf",
      "NotoSansKannada-Regular.ttf",
      "NotoSansKhmer-Regular.ttf",
      "NotoSansLao-Regular.ttf",
      "NotoSansMongolian-Regular.ttf",
      "NotoSansMyanmar-Regular.ttf",
      "NotoSansOriya-Regular.ttf",
      "NotoSansSinhala-Regular.ttf",
      "NotoSansTamil-Regular.ttf",
      "NotoSansThai-Regular.ttf",
      "NotoSansTibetan-Regular.ttf",
      "//NotoSansTifinagh-Regular.ttf"
    ]
  },

Noto Sans Regular.zip

@maxammann
Copy link
Member

We are currently using these fonts: https://github.com/orangemug/font-glyphs/tree/master

So preferably we adjust those.

Not sure which glyphs we need and how maplibre handles Arabic characters right now.

My guess is that it does not use the pbf font stacks for complex layout like arabic.

@f1sh1918
Copy link
Contributor

f1sh1918 commented Aug 23, 2023

ok. i think both libraries use fontnik and shouldn't have a big differences. Anyway we need to fork one of it and generate the glyphs we need. For me the repo i suggested looks way simpler and clearer to build pbf file for "Noto Sans Regular" out of different *.ttf's
You can easily configure which ttfs you want to use.
At least including more ttf increases the size of the pbf file so i think we should give it a try the ones we use in integreat
Noto Sans, Noto Sans Arabic, Noto Sans SC, Noto Sans Georgian

Noto Sans Regular_integreat_fonts.zip

General question is also why we want to provide all these unneeded glyphs within this submodule instead of just "Noto Sans Regular" @maxammann

Not sure if Noto Sans SC is supported

@f1sh1918
Copy link
Contributor

i just added this pr on the mapstyle repo.
digitalfabrik/integreat-maplibre-style#15
I don't know why we should keep a 6 year old submodule dependency in our repo and all these unneeded glyphs @maxammann ?
If there is valid reason i'm gonna readd it

@maxammann
Copy link
Member

i just added this pr on the mapstyle repo.
digitalfabrik/integreat-maplibre-style#15
I don't know why we should keep a 6 year old submodule dependency in our repo and all these unneeded glyphs @maxammann ?
If there is valid reason i'm gonna readd it

Both repos seem to do roughly the same thing. Both use fontnik to generate fonts for maplibre.

Switching fine, though make sure not to break paths used in the style Json.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked Native Affects the native project ready Story Web Affects the web project
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

3 participants