Giter VIP home page Giter VIP logo

Comments (5)

MarkGrayRESPEC avatar MarkGrayRESPEC commented on August 15, 2024

On my computer, when I load this sample file these labels show up looking like the same gibberish in EPANET 2 and in the new EPANET-UI. Installing the Hebrew language pack has not helped.

I don't see any label font specified in the example inp file. I imagine EPANET 2 uses your default system font for labels when it does not have font hints. Maybe your default system font includes these characters and mine does not? What is your default system font? (Note: we plan to make a wiki page describing how to make a translation for the UI, but that is a separate question from the map labeling.)

from swmm-epanet_user_interface.

eladsal avatar eladsal commented on August 15, 2024

The INP doesn't have fonts for lables. Only the binary input file of EPANET 2 saves labels fonts. I'm not sure what you mean by "system fonts", where do you want me to look?

If you are asking about my languages installed here they are (my Windows UI is in English):

screenshot 244

Yes, translation is a different thing but probably we should talk about Internationalization (i18n) which is a wider issue.

from swmm-epanet_user_interface.

MarkGrayRESPEC avatar MarkGrayRESPEC commented on August 15, 2024

I now have the same Language settings as you with English first and Hebrew second and am still seeing the same gibberish in both EPANET 2.0 (About window says Build 2.00.12) and MTP 3. I tried hard-coding the font of the labels to David so I am sure the font has the required characters, but it is still not displaying the labels as Hebrew.
Does EPANET 2 correctly display these labels for you when the project is loaded from the .inp or only from the .net? There is a way to store font information in the .inp after the label text, but it looks like EPANET 2 did not write those fields when exporting this example. (We also do not yet try to use these font hints in the new UI.)

from swmm-epanet_user_interface.

eladsal avatar eladsal commented on August 15, 2024

Yes, EPANET 2.0 shows the Hebrew fonts when loaded from the INP file (EPANET didn't save the font info in the INP file). Here are some more settings on my machine:

screenshot 245

screenshot 246

from swmm-epanet_user_interface.

MarkGrayRESPEC avatar MarkGrayRESPEC commented on August 15, 2024

I have just made a change that allows map label objects in SWMM and EPANET user interface to have unicode text instead of just ASCII. This text is encoded in UTF-8 in the project .inp file.

To test this feature:

  1. get the latest version of the EPANET or SWMM UI (must be a version after MTP 3r3, not yet available as of today)
  2. open an existing project
  3. switch your keyboard to another language (hopefully you already know how to do this if you want this feature)
  4. add a label using the "T" toolbar button
  5. type your label text and press OK
  6. verify that the label is displayed correctly on the map and in the list of labels
  7. verify that saving the project to a .inp file and loading it again works

Note: This change is not compatible with the example Net1.inp attached to this issue.

from swmm-epanet_user_interface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.