Comments (5)
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.
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):
Yes, translation is a different thing but probably we should talk about Internationalization (i18n) which is a wider issue.
from swmm-epanet_user_interface.
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.
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:
from swmm-epanet_user_interface.
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:
- get the latest version of the EPANET or SWMM UI (must be a version after MTP 3r3, not yet available as of today)
- open an existing project
- switch your keyboard to another language (hopefully you already know how to do this if you want this feature)
- add a label using the "T" toolbar button
- type your label text and press OK
- verify that the label is displayed correctly on the map and in the list of labels
- 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)
- Problem creating objects with non-default name when made by clicking on three dots HOT 1
- Type1 and Type2 pump curve plots HOT 1
- Handling of non-existent recent files HOT 1
- Path information for recently opened files HOT 1
- Error creating installation package for SWMM HOT 2
- Adding Calibration files causes program to crash HOT 8
- It is not clear how to add SWMM-CAT and SSOAP Tools HOT 4
- MAP Projections HOT 5
- SWMM help - the page could not be found HOT 13
- Handle SWMM simulation error more smoothly HOT 1
- Different set of links in profile between this and the Delphi version HOT 1
- SWMM project-specific .ini files not being created HOT 2
- What is the python entry point? HOT 10
- Dependancies under Linux HOT 3
- This Windows version (6.3.9600) does not support the required bluetooth API. HOT 1
- Can't compile .exe file to run HOT 3
- Possible to run on Linux? HOT 1
- Propose archiving this repository due to lack of activity HOT 2
- Main Issue to me is the SWMM5 Engine Used
- Suggest splitting SWMM-EPANET_User_Interface into two repo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swmm-epanet_user_interface.