fix(arch, table): what the 1.6.0 README renders showed

- The exterior dimension chains follow the plot scale. DIMSCALE is the
  plan's scale while they are drawn and is put back afterwards; a 1:50
  chain's 2.5 text had been 2.5 drawing units, 0.05 mm on the sheet.
- A headless TABLE merges its title row, as AutoCAD's TABLE does; a long
  title no longer wraps inside the first column over the header row.
- A headless TABLE's cell margin scales with the lettering. A flat 1.0 was
  0.02 mm on a 1:50 schedule; tables at the default 2.5 text are unchanged.
- drawing_new writes the Standard text style in arial.ttf, as AutoCAD
  2026's acadiso.dwt ships it: txt has no superscript two, so 'm²' read
  'm?' live and rendered as a box headlessly. The five bundled templates
  are rebuilt and build_templates --check reproduces them.

Each fix has a test that fails on the old code.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FKFStjEFzpGyLq5bMpWxTd
This commit is contained in:
Umut CAN
2026-09-25 00:17:10 +03:00
co-authored by Claude Opus 5.5
parent 554daff8d0
commit 7e7fe11a71
13 changed files with 182 additions and 370 deletions
+7 -7
View File
@@ -489,7 +489,7 @@ $SKPOLY
9
$TDCREATE
40
2461306.528125
2461308.9858101853
9
$TDUCREATE
40
@@ -497,7 +497,7 @@ $TDUCREATE
9
$TDUPDATE
40
2461306.528125
2461308.9858101853
9
$TDUUPDATE
40
@@ -929,11 +929,11 @@ $PSTYLEMODE
9
$FINGERPRINTGUID
2
{4D9D8563-5BFB-473B-8F1E-D1D0F3D0DAFA}
{FB139631-7B1A-47EB-AF87-B1687B365FDD}
9
$VERSIONGUID
2
{8D04634D-773A-4616-8A64-559AF6DC2617}
{6BE2B494-ED83-4913-8849-67761A7D0FDA}
9
$EXTNAMES
290
@@ -2037,7 +2037,7 @@ Standard
42
2.5
3
txt
arial.ttf
4
0
@@ -3591,7 +3591,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.938108+00:00
1.4.4 @ 2026-09-24T20:39:34.891596+00:00
0
DICTIONARYVAR
5
@@ -3603,7 +3603,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.946903+00:00
1.4.4 @ 2026-09-24T20:39:34.900113+00:00
0
ENDSEC
0
+7 -7
View File
@@ -489,7 +489,7 @@ $SKPOLY
9
$TDCREATE
40
2461306.528125
2461308.9858101853
9
$TDUCREATE
40
@@ -497,7 +497,7 @@ $TDUCREATE
9
$TDUPDATE
40
2461306.528125
2461308.9858101853
9
$TDUUPDATE
40
@@ -929,11 +929,11 @@ $PSTYLEMODE
9
$FINGERPRINTGUID
2
{EFF5DFA9-C336-4985-B6C0-43235A21CA22}
{3E50F756-652E-48B0-AE41-6BC3AFA2655A}
9
$VERSIONGUID
2
{FAECDBB5-1575-421E-8ABB-3C85F40DB897}
{D664D6B0-1825-4401-AB82-8B8A64CDCC28}
9
$EXTNAMES
290
@@ -2037,7 +2037,7 @@ Standard
42
2.5
3
txt
arial.ttf
4
0
@@ -3591,7 +3591,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.949904+00:00
1.4.4 @ 2026-09-24T20:39:34.904120+00:00
0
DICTIONARYVAR
5
@@ -3603,7 +3603,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.956981+00:00
1.4.4 @ 2026-09-24T20:39:34.910627+00:00
0
ENDSEC
0
+7 -7
View File
@@ -489,7 +489,7 @@ $SKPOLY
9
$TDCREATE
40
2461306.528125
2461308.9858101853
9
$TDUCREATE
40
@@ -497,7 +497,7 @@ $TDUCREATE
9
$TDUPDATE
40
2461306.528125
2461308.9858101853
9
$TDUUPDATE
40
@@ -929,11 +929,11 @@ $PSTYLEMODE
9
$FINGERPRINTGUID
2
{6F1F6CA9-24DC-4EFD-8119-161D0C1B13F5}
{D6D14E50-062D-4B6D-94BD-7BBE205F2BDD}
9
$VERSIONGUID
2
{BB862168-CC9E-4423-9C5D-4DD3A99B384D}
{D46D597C-787A-4F32-8632-E6227A415146}
9
$EXTNAMES
290
@@ -2037,7 +2037,7 @@ Standard
42
2.5
3
txt
arial.ttf
4
0
@@ -3663,7 +3663,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.902394+00:00
1.4.4 @ 2026-09-24T20:39:34.835350+00:00
0
SCALE
5
@@ -4007,7 +4007,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.911407+00:00
1.4.4 @ 2026-09-24T20:39:34.863902+00:00
0
ENDSEC
0
+7 -7
View File
@@ -489,7 +489,7 @@ $SKPOLY
9
$TDCREATE
40
2461306.528125
2461308.9858101853
9
$TDUCREATE
40
@@ -497,7 +497,7 @@ $TDUCREATE
9
$TDUPDATE
40
2461306.528125
2461308.9858101853
9
$TDUUPDATE
40
@@ -929,11 +929,11 @@ $PSTYLEMODE
9
$FINGERPRINTGUID
2
{522C5F29-75D3-427F-A718-E45B971550C2}
{68192C9F-2E1B-4491-B3B5-24934A927E62}
9
$VERSIONGUID
2
{CF5A954B-3734-4AD2-B15E-F6411516FB5E}
{B09ECF76-6F17-4166-8AA8-1673B93563F5}
9
$EXTNAMES
290
@@ -2037,7 +2037,7 @@ Standard
42
2.5
3
txt
arial.ttf
4
0
@@ -4541,7 +4541,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.742891+00:00
1.4.4 @ 2026-09-24T20:39:34.680466+00:00
0
DICTIONARYVAR
5
@@ -4553,7 +4553,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.898227+00:00
1.4.4 @ 2026-09-24T20:39:34.829339+00:00
0
ENDSEC
0
+7 -7
View File
@@ -489,7 +489,7 @@ $SKPOLY
9
$TDCREATE
40
2461306.528125
2461308.9858101853
9
$TDUCREATE
40
@@ -497,7 +497,7 @@ $TDUCREATE
9
$TDUPDATE
40
2461306.528125
2461308.9858101853
9
$TDUUPDATE
40
@@ -929,11 +929,11 @@ $PSTYLEMODE
9
$FINGERPRINTGUID
2
{629792F3-C911-49E6-B9A0-300331D1DFBB}
{F0BBB091-B6E3-4896-AD21-EB815B809E89}
9
$VERSIONGUID
2
{ACABCD08-CEC8-4984-94D2-99D2ED56844B}
{CA4E384E-EE93-48E0-A671-949D2BCF158F}
9
$EXTNAMES
290
@@ -2205,7 +2205,7 @@ Standard
42
2.5
3
txt
arial.ttf
4
0
@@ -4709,7 +4709,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.915301+00:00
1.4.4 @ 2026-09-24T20:39:34.868575+00:00
0
DICTIONARYVAR
5
@@ -4721,7 +4721,7 @@ DictionaryVariables
280
0
1
1.4.4 @ 2026-09-22T09:40:30.933095+00:00
1.4.4 @ 2026-09-24T20:39:34.887094+00:00
0
ENDSEC
0