Width and height argtypes, kdesc --argtypes from ref/, txt @define/@left_right/@columns, kdiag --check value validation (from dev d6993110e9b3)
Also: the klammertext argtype (descriptions kept as source), txt table wrapping and :hpos/:offset, @c between ‹ ›, txt section headings, the ktext newline-only trim, capitalize(), and the argtype test suite. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
9b0d0d7897
commit
0ead40f272
39 files changed
+734
-158
No files matched your search
+16
-19
@@ -2,56 +2,53 @@
|
||||
# the front and back matter of a book):
|
||||
|
||||
@@preface.k :id :name Preface : Preface text @@
|
||||
@@preface.html,tex :: @eval section.Section(K, "preface") eval@ @@
|
||||
@@preface.html,tex,txt :: @eval section.Section(K, "preface") eval@ @@
|
||||
|
||||
# Numbered section headings:
|
||||
|
||||
@@part.k title :id :name Part : Part heading @@
|
||||
@@part.html,tex :: @eval section.Section(K, 0) eval@ @@
|
||||
@@part.html,tex,txt :: @eval section.Section(K, 0) eval@ @@
|
||||
|
||||
@@s1.k title :id :n : Top level division, numbered @@
|
||||
@@s1.html,tex :: @eval section.Section(K, 1) eval@ @@
|
||||
|
||||
# Temporary hack for testing txt target; need to number section headings.
|
||||
@@s1.txt :: *title* @@
|
||||
@@s1.html,tex,txt :: @eval section.Section(K, 1) eval@ @@
|
||||
|
||||
@@s2.k title :id :n : Second level division, numbered @@
|
||||
@@s2.html,tex :: @eval section.Section(K, 2) eval@ @@
|
||||
@@s2.html,tex,txt :: @eval section.Section(K, 2) eval@ @@
|
||||
|
||||
@@s3.k title :id :n : Third level division, numbered @@
|
||||
@@s3.html,tex :: @eval section.Section(K, 3) eval@ @@
|
||||
@@s3.html,tex,txt :: @eval section.Section(K, 3) eval@ @@
|
||||
|
||||
@@s4.k title :id :n : Fourth level division, numbered @@
|
||||
@@s4.html,tex :: @eval section.Section(K, 4) eval@ @@
|
||||
@@s4.html,tex,txt :: @eval section.Section(K, 4) eval@ @@
|
||||
|
||||
@@s5.k title :id :n : Fifth level division, numbered @@
|
||||
@@s5.html,tex :: @eval section.Section(K, 5) eval@ @@
|
||||
@@s5.html,tex,txt :: @eval section.Section(K, 5) eval@ @@
|
||||
|
||||
@@s6.k title :id :n : Sixth level division, numbered @@
|
||||
@@s6.html,tex :: @eval section.Section(K, 6) eval@ @@
|
||||
@@s6.html,tex,txt :: @eval section.Section(K, 6) eval@ @@
|
||||
|
||||
@@s7.k title :id :n : Seventh level division, numbered @@
|
||||
@@s7.html,tex :: @eval section.Section(K, 7) eval@ @@
|
||||
@@s7.html,tex,txt :: @eval section.Section(K, 7) eval@ @@
|
||||
|
||||
# Unnumbered section headings:
|
||||
|
||||
@@h1.k title :id :n : Top level division, unnumbered @@
|
||||
@@h1.html,tex :: @eval section.Section(K, 1, numbered=False) eval@ @@
|
||||
@@h1.html,tex,txt :: @eval section.Section(K, 1, numbered=False) eval@ @@
|
||||
|
||||
@@h2.k title :id : Second level division, unnumbered @@
|
||||
@@h2.html,tex :: @eval section.Section(K, 2, numbered=False) eval@ @@
|
||||
@@h2.html,tex,txt :: @eval section.Section(K, 2, numbered=False) eval@ @@
|
||||
|
||||
@@h3.k title :id : Third level division, unnumbered @@
|
||||
@@h3.html,tex :: @eval section.Section(K, 3, numbered=False) eval@ @@
|
||||
@@h3.html,tex,txt :: @eval section.Section(K, 3, numbered=False) eval@ @@
|
||||
|
||||
@@h4.k title :id : Fourth level division, unnumbered @@
|
||||
@@h4.html,tex :: @eval section.Section(K, 4, numbered=False) eval@ @@
|
||||
@@h4.html,tex,txt :: @eval section.Section(K, 4, numbered=False) eval@ @@
|
||||
|
||||
@@h5.k title :id : Fifth level division, unnumbered @@
|
||||
@@h5.html,tex :: @eval section.Section(K, 5, numbered=False) eval@ @@
|
||||
@@h5.html,tex,txt :: @eval section.Section(K, 5, numbered=False) eval@ @@
|
||||
|
||||
@@h6.k title :id : Sixth level division, unnumbered @@
|
||||
@@h6.html,tex :: @eval section.Section(K, 6, numbered=False) eval@ @@
|
||||
@@h6.html,tex,txt :: @eval section.Section(K, 6, numbered=False) eval@ @@
|
||||
|
||||
@@h7.k title :id : Seventh level division, unnumbered @@
|
||||
@@h7.html,tex :: @eval section.Section(K, 7, numbered=False) eval@ @@
|
||||
@@h7.html,tex,txt :: @eval section.Section(K, 7, numbered=False) eval@ @@
|
||||
@@ -72,6 +72,5 @@ class Section(klammer_base.Klammer_base):
|
||||
result = f"%__sectionlink__{id}__{self.title}__" + "\n" + result
|
||||
return result
|
||||
|
||||
# Need to implement the procedural numbering for the txt target
|
||||
# def txt(self):
|
||||
# return self.title
|
||||
def txt(self):
|
||||
return f"@b {self.title} @"
|
||||
Reference in new issue
Block a user