1 страниц (2 вхождений)
oil units id schema - units schema xml - Сообщения
#1 Опубликовано: 22.03.2019 00:54:47
I want to add custom units to the .xml file, but I can't find the schema that explains to me what the id="#" # references to.
I want to add custom units, in this case US Oil Barrels (volume).
I want to add custom units, in this case US Oil Barrels (volume).
#2 Опубликовано: 02.03.2023 15:20:01
Greetings,
Through Successive Iterations, I was able to determine the following:
o The 「id」 field correlates to the Language file; id=”635” is the 635th entry, which is the word: ‘per mille’ ( 「C:\Program Files (x86)\SMath Studio\lang\Text_ENG.lang」 )
With that being said, I am unaware of how to 'add' or 'redefine' a given Entry within the Text_ENG.lang file; you can find the word/phrase that best matches your custom unit, just be advised that you cannot define more than (1) unit the same id (SMath will not even attempt to open unless you have a valid Units.xml file (i.e., if you define an ID to a Unit and SMath opens: you configured it correctly!)).
Please note: you do not need to define an 「id」 field; the 「title」 field can be used instead (See below for title/lang syntax as an alternative to id):
Therefore, your 'new unit' can be inserted as follows:
May this be of help to the next person;
-Kenny Lemens, P.E. ᵂᴵ
Through Successive Iterations, I was able to determine the following:
o The 「id」 field correlates to the Language file; id=”635” is the 635th entry, which is the word: ‘per mille’ ( 「C:\Program Files (x86)\SMath Studio\lang\Text_ENG.lang」 )
ENG
English
97765096862
iVBORw [... full text extruded Illustrative Purposes ...] AAAAElFTkSuQmCC
Andrey Ivashov (78.9%), Anonymous (11.7%), tivasyk (9.1%), Other (0.3%), Davor Košturić (0.1%)
2021.05.12.23
d54d74e83ab84e518dd54929051f09ed
//755 <--- TOTAL COUNT OF 755 ENTRIES
id=0 : Save changes in
id=1 : Author
id=2 : Web-site
id=3 : Date
id=4 : Actions
id=5 : OK
id=6 : Default
id=7 : Menu
id=8 : File
id=9 : Open
id=10 : Save
id=11 : Save as
id=12 : Edit
id=13 : Undo
id=14 : Redo
...
id=n : ???
...
id=745 : Too many devices connected using this account
id=745 : Connected to the server
English
97765096862
iVBORw [... full text extruded Illustrative Purposes ...] AAAAElFTkSuQmCC
Andrey Ivashov (78.9%), Anonymous (11.7%), tivasyk (9.1%), Other (0.3%), Davor Košturić (0.1%)
2021.05.12.23
d54d74e83ab84e518dd54929051f09ed
//755 <--- TOTAL COUNT OF 755 ENTRIES
id=0 : Save changes in
id=1 : Author
id=2 : Web-site
id=3 : Date
id=4 : Actions
id=5 : OK
id=6 : Default
id=7 : Menu
id=8 : File
id=9 : Open
id=10 : Save
id=11 : Save as
id=12 : Edit
id=13 : Undo
id=14 : Redo
...
id=n : ???
...
id=745 : Too many devices connected using this account
id=745 : Connected to the server
With that being said, I am unaware of how to 'add' or 'redefine' a given Entry within the Text_ENG.lang file; you can find the word/phrase that best matches your custom unit, just be advised that you cannot define more than (1) unit the same id (SMath will not even attempt to open unless you have a valid Units.xml file (i.e., if you define an ID to a Unit and SMath opens: you configured it correctly!)).
Please note: you do not need to define an 「id」 field; the 「title」 field can be used instead (See below for title/lang syntax as an alternative to id):
<add factor="9.80665" exp="-3" system="All" title="Gram-force" lang:rus="Грамм-сила">
<synonym name="gf" lang:rus="гс" />
</add>
Therefore, your 'new unit' can be inserted as follows:
<add factor="6.28981" system="Metric" title="US Oil Barrels">
<synonym name="bbl" />
</add>
May this be of help to the next person;
-Kenny Lemens, P.E. ᵂᴵ
"No matter where you go, there you are." -Buckaroo BanzaiHotkeys: https://en.smath.com/forum/resource.ashx?a=45771&b=2
1 пользователям понравился этот пост
Mark R Harris 03.03.2023 02:07:00
1 страниц (2 вхождений)
-
Новые сообщения
-
Нет новых сообщений