Textsymbols DIN 7184

Discussions about the development of the TechDraw workbench
reox
Posts: 664
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Textsymbols DIN 7184

Postby reox » Mon Mar 18, 2019 9:42 am

yes, I added those, as well as the two arrows and the square symbol ;)

I noticed that there are even more modifiers listed in my technical drawing book, but I would need to look them up.
Also need to work on the visibilty of the symbols...

I do not find the "ST" symbol anywhere, and it is not listed in my book. Is this some legacy symbol?
2019-03-18-104152_388x801_scrot.png
2019-03-18-104152_388x801_scrot.png (29.31 KiB) Viewed 413 times
efyx
Posts: 280
Joined: Fri Sep 26, 2014 7:36 pm

Re: Textsymbols DIN 7184

Postby efyx » Mon Mar 18, 2019 11:02 am

I cannot start macro - why? I got information No module named PySide.QtWidgets
reox
Posts: 664
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Textsymbols DIN 7184

Postby reox » Mon Mar 18, 2019 11:51 am

mhh maybe because I'm using a py3/qt5 build with pyside2?

Code: Select all

OS: Debian GNU/Linux buster/sid
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.16146 (Git)
Build type: Release
Branch: master
Hash: 3cf15c014bec8a7a7fa56fdf0adf1402c724d788
Python version: 3.7.3rc1
Qt version: 5.11.3
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Austria (de_AT)

Code: Select all

ii  libpyside2-5.11           5.11.2-3     amd64        Python 2 bindings for Qt5 (base files)
ii  libpyside2-dev            5.11.2-3     amd64        Python bindings for Qt5 (development files)
ii  libpyside2-py3-5.11       5.11.2-3     amd64        Python 3 bindings for Qt5 (base files)
ii  pyside2-tools             5.11.2-3     amd64        development tools for PySide2 (uic, rcc, lupdate)
un  python-pyside2-doc        <keine>      <keine>      (keine Beschreibung vorhanden)
ii  python-pyside2.qtcore     5.11.2-3     amd64        Python bindings for Qt5 core module (Python 2)
ii  python-pyside2.qtgui      5.11.2-3     amd64        Python bindings for Qt5 Gui module (Python 2)
ii  python-pyside2.qtopengl   5.11.2-3     amd64        Python bindings for Qt5 OpenGL module (Python 2)
ii  python-pyside2.qtwidgets  5.11.2-3     amd64        Python bindings for Qt5 Widgets module (Python 2)
ii  python-pyside2uic         5.11.2-3     all          User Interface Compiler for PySide2 (Python 2)
ii  python3-pyside2.qtcore    5.11.2-3     amd64        Python bindings for Qt5 core module (Python 3)
ii  python3-pyside2.qtgui     5.11.2-3     amd64        Python bindings for Qt5 Gui module (Python 3)
ii  python3-pyside2.qtopengl  5.11.2-3     amd64        Python bindings for Qt5 OpenGL module (Python 3)
ii  python3-pyside2.qtsvg     5.11.2-3     amd64        Python bindings for Qt5 Svg module (Python 3)
ii  python3-pyside2.qtwidgets 5.11.2-3     amd64        Python bindings for Qt5 Widgets module (Python 3)
ii  python3-pyside2uic        5.11.2-3     all          User Interface Compiler for PySide2 (Python 3)
User avatar
pl7i92LCNC
Posts: 209
Joined: Tue Mar 12, 2019 3:03 pm
Location: RLP DE

Re: Textsymbols DIN 7184

Postby pl7i92LCNC » Mon Mar 18, 2019 12:31 pm

hi il get a error by utf-8 on ubuntu 18,04
is this the QT issue
and canot be solved
reox
Posts: 664
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Textsymbols DIN 7184

Postby reox » Mon Mar 18, 2019 12:36 pm

pl7i92LCNC wrote:
Mon Mar 18, 2019 12:31 pm
hi il get a error by utf-8 on ubuntu 18,04
is this the QT issue
and canot be solved
I would guess that is because python2... Looks like the macro needs some backwards compatibility :oops:
reox
Posts: 664
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Textsymbols DIN 7184

Postby reox » Mon Mar 18, 2019 2:21 pm

Can you both test it now? I tested with freecad from debian sid and it works there now.
It should look similar to the image, but the sorting might be different in python2, as dicts behave differently.
2019-03-18-152052_388x960_scrot.png
2019-03-18-152052_388x960_scrot.png (40.24 KiB) Viewed 350 times
User avatar
Kunda1
Posts: 5770
Joined: Thu Jan 05, 2017 9:03 pm

Re: Textsymbols DIN 7184

Postby Kunda1 » Mon Mar 18, 2019 4:06 pm

Maybe unrelated: what about Welding symbols? issue #1240
Want to contribute back to FC? Checkout:
#lowhangingfruit | Use the Source, Luke. | How to Help FreeCAD | How to report FC bugs and features
reox
Posts: 664
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Textsymbols DIN 7184

Postby reox » Mon Mar 18, 2019 4:15 pm

Kunda1 wrote:
Mon Mar 18, 2019 4:06 pm
Maybe unrelated: what about Welding symbols? issue #1240
I had a quick look around, but it looks like they are not defined in unicode.
But someone created a glyph font: https://www.fontspace.com/micronus/y145 ... 90/charmap
efyx
Posts: 280
Joined: Fri Sep 26, 2014 7:36 pm

Re: Textsymbols DIN 7184

Postby efyx » Tue Mar 19, 2019 7:12 am

reox wrote:
Mon Mar 18, 2019 2:21 pm
It works. Thanks.
reox
Posts: 664
Joined: Sat Aug 13, 2016 10:06 am
Contact:

Re: Textsymbols DIN 7184

Postby reox » Thu Mar 28, 2019 8:24 pm

Just for the reference as I'm skimming through all the norms right now... There are many more symbols unsolved:
ISO 14405-1 specifies some "Specification modifiers", two letters enclosed in a rounded box.
Then there are annotation signs: a number inside a hexagon

Next ISO 1101:2017 specifies even more modifiers, more than OSIfont can handle: A, C, G, N, R, X are missing

Also interesting: the theoretical exact value (idk the exact translation, in German "theoretisch exakte Maße"), a value inside a rectangle

Then there are modifiers according to ISO 5459:2013, but these should be all in the osifont or are just letters in between of [].

Wouldn't it be possible to use diacritic characters to emulate all of those?
Some of those are actually possible:
https://en.wikipedia.org/wiki/Combining ... or_Symbols

So for example writing a single letter inside a square is possible.

One possibility would be to extend osifont with the welding symbols as well as with diacritics for all those cases. But I guess that is a lot of work :/