odix 0.2.0__tar.gz → 0.2.3__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. {odix-0.2.0 → odix-0.2.3}/.github/workflows/release.yml +2 -2
  2. {odix-0.2.0 → odix-0.2.3}/PKG-INFO +1 -1
  3. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/typus.yml +1 -1
  4. {odix-0.2.0 → odix-0.2.3}/pyproject.toml +1 -1
  5. {odix-0.2.0 → odix-0.2.3}/src/odix/impressio/impressio.py +28 -0
  6. {odix-0.2.0 → odix-0.2.3}/src/odix/scriptorium/syntax.py +1 -1
  7. {odix-0.2.0 → odix-0.2.3}/.gitignore +0 -0
  8. {odix-0.2.0 → odix-0.2.3}/LICENSE +0 -0
  9. {odix-0.2.0 → odix-0.2.3}/PHILOSOPHY.md +0 -0
  10. {odix-0.2.0 → odix-0.2.3}/README.md +0 -0
  11. {odix-0.2.0 → odix-0.2.3}/docs/journal.md +0 -0
  12. {odix-0.2.0 → odix-0.2.3}/docs/parser_architecture.md +0 -0
  13. {odix-0.2.0 → odix-0.2.3}/docs/roadmap.md +0 -0
  14. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/01_introduccion.md +0 -0
  15. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/02_build.md +0 -0
  16. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/03_book_yml.md +0 -0
  17. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/04_typus.md +0 -0
  18. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/05_principia.md +0 -0
  19. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/06_imagenes.md +0 -0
  20. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/07_matematicas.md +0 -0
  21. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/08_citas_y_bibliografia.md +0 -0
  22. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/09_emphasis.md +0 -0
  23. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/book.yml +0 -0
  24. {odix-0.2.0 → odix-0.2.3}/examples/Volumen_01/references.bib +0 -0
  25. {odix-0.2.0 → odix-0.2.3}/src/odix/__init__.py +0 -0
  26. {odix-0.2.0 → odix-0.2.3}/src/odix/cli.py +0 -0
  27. {odix-0.2.0 → odix-0.2.3}/src/odix/exceptions.py +0 -0
  28. {odix-0.2.0 → odix-0.2.3}/src/odix/impressio/__init__.py +0 -0
  29. {odix-0.2.0 → odix-0.2.3}/src/odix/ordinatio/__init__.py +0 -0
  30. {odix-0.2.0 → odix-0.2.3}/src/odix/ordinatio/book.py +0 -0
  31. {odix-0.2.0 → odix-0.2.3}/src/odix/ordinatio/chapter.py +0 -0
  32. {odix-0.2.0 → odix-0.2.3}/src/odix/ordinatio/loader.py +0 -0
  33. {odix-0.2.0 → odix-0.2.3}/src/odix/ordinatio/ordinatio.py +0 -0
  34. {odix-0.2.0 → odix-0.2.3}/src/odix/ordinatio/principium.py +0 -0
  35. {odix-0.2.0 → odix-0.2.3}/src/odix/scriptorium/__init__.py +0 -0
  36. {odix-0.2.0 → odix-0.2.3}/src/odix/scriptorium/compiler.py +0 -0
  37. {odix-0.2.0 → odix-0.2.3}/src/odix/scriptorium/language.py +0 -0
  38. {odix-0.2.0 → odix-0.2.3}/src/odix/scriptorium/visitor.py +0 -0
  39. {odix-0.2.0 → odix-0.2.3}/src/odix/scriptorium/visitors/__init__.py +0 -0
  40. {odix-0.2.0 → odix-0.2.3}/src/odix/scriptorium/visitors/markup.py +0 -0
  41. {odix-0.2.0 → odix-0.2.3}/src/odix/scriptorium/writer.py +0 -0
  42. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/__init__.py +0 -0
  43. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/io/deserializer.py +0 -0
  44. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/io/serializer.py +0 -0
  45. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/lexer/__init__.py +0 -0
  46. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/lexer/exceptions.py +0 -0
  47. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/lexer/lexer.py +0 -0
  48. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/lexer/reader.py +0 -0
  49. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/lexer/reader_type.py +0 -0
  50. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/lexer/token.py +0 -0
  51. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/lexer/token_type.py +0 -0
  52. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/__init__.py +0 -0
  53. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/bibliography.py +0 -0
  54. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/block.py +0 -0
  55. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/bold.py +0 -0
  56. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/caption.py +0 -0
  57. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/cell.py +0 -0
  58. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/citation.py +0 -0
  59. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/code_block.py +0 -0
  60. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/cross_reference.py +0 -0
  61. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/document.py +0 -0
  62. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/figure.py +0 -0
  63. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/footnote.py +0 -0
  64. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/horizontal_rule.py +0 -0
  65. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/image.py +0 -0
  66. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/inline.py +0 -0
  67. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/inline_code.py +0 -0
  68. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/italic.py +0 -0
  69. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/label.py +0 -0
  70. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/link.py +0 -0
  71. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/list.py +0 -0
  72. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/list_item.py +0 -0
  73. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/math_block.py +0 -0
  74. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/math_inline.py +0 -0
  75. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/metadata.py +0 -0
  76. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/node.py +0 -0
  77. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/page_break.py +0 -0
  78. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/paragraph.py +0 -0
  79. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/quote.py +0 -0
  80. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/reference.py +0 -0
  81. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/row.py +0 -0
  82. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/section.py +0 -0
  83. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/strike.py +0 -0
  84. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/table.py +0 -0
  85. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/text.py +0 -0
  86. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/nodes/underline.py +0 -0
  87. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/__init__.py +0 -0
  88. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/exceptions.py +0 -0
  89. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/parser.py +0 -0
  90. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/__init__.py +0 -0
  91. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/__init__.py +0 -0
  92. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/bibliography.py +0 -0
  93. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/caption.py +0 -0
  94. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/cells.py +0 -0
  95. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/code_block.py +0 -0
  96. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/directive.py +0 -0
  97. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/figure.py +0 -0
  98. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/footnote.py +0 -0
  99. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/headings.py +0 -0
  100. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/image.py +0 -0
  101. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/list_item.py +0 -0
  102. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/lists.py +0 -0
  103. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/math_block.py +0 -0
  104. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/page_break.py +0 -0
  105. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/paragraphs.py +0 -0
  106. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/quotes.py +0 -0
  107. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/reference.py +0 -0
  108. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/rows.py +0 -0
  109. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/blocks/tables.py +0 -0
  110. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/dispatchers/__init__.py +0 -0
  111. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/dispatchers/blocks.py +0 -0
  112. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/dispatchers/inline.py +0 -0
  113. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/__init__.py +0 -0
  114. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/asterisk.py +0 -0
  115. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/bold.py +0 -0
  116. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/citation.py +0 -0
  117. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/code.py +0 -0
  118. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/colon.py +0 -0
  119. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/cross_reference.py +0 -0
  120. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/emphasis.py +0 -0
  121. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/hyphen.py +0 -0
  122. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/inline_code.py +0 -0
  123. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/italic.py +0 -0
  124. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/math.py +0 -0
  125. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/module.py +0 -0
  126. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/plus.py +0 -0
  127. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/sequence.py +0 -0
  128. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/strike.py +0 -0
  129. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/text.py +0 -0
  130. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/underline.py +0 -0
  131. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/parser/rules/inline/underscore.py +0 -0
  132. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/tabula.py +0 -0
  133. {odix-0.2.0 → odix-0.2.3}/src/odix/tabula/visitor.py +0 -0
  134. {odix-0.2.0 → odix-0.2.3}/src/odix/typus/__init__.py +0 -0
  135. {odix-0.2.0 → odix-0.2.3}/src/odix/typus/document_style.py +0 -0
  136. {odix-0.2.0 → odix-0.2.3}/src/odix/typus/loader.py +0 -0
  137. {odix-0.2.0 → odix-0.2.3}/src/odix/typus/margins.py +0 -0
  138. {odix-0.2.0 → odix-0.2.3}/src/odix/typus/typus.py +0 -0
  139. {odix-0.2.0 → odix-0.2.3}/tests/__init__.py +0 -0
  140. {odix-0.2.0 → odix-0.2.3}/tests/data/book.md +0 -0
  141. {odix-0.2.0 → odix-0.2.3}/tests/impressio/test_impressio.py +0 -0
  142. {odix-0.2.0 → odix-0.2.3}/tests/ordinatio/test_book.py +0 -0
  143. {odix-0.2.0 → odix-0.2.3}/tests/ordinatio/test_chapter.py +0 -0
  144. {odix-0.2.0 → odix-0.2.3}/tests/ordinatio/test_loader.py +0 -0
  145. {odix-0.2.0 → odix-0.2.3}/tests/ordinatio/test_ordinatio.py +0 -0
  146. {odix-0.2.0 → odix-0.2.3}/tests/ordinatio/test_principium.py +0 -0
  147. {odix-0.2.0 → odix-0.2.3}/tests/tabula/io/deserializer.py +0 -0
  148. {odix-0.2.0 → odix-0.2.3}/tests/tabula/lexer/test_simbols.py +0 -0
  149. {odix-0.2.0 → odix-0.2.3}/tests/tabula/lexer/test_text.py +0 -0
  150. {odix-0.2.0 → odix-0.2.3}/tests/tabula/lexer/test_token.py +0 -0
  151. {odix-0.2.0 → odix-0.2.3}/tests/tabula/lexer/test_token_type.py +0 -0
  152. {odix-0.2.0 → odix-0.2.3}/tests/tabula/nodes/test_node.py +0 -0
  153. {odix-0.2.0 → odix-0.2.3}/tests/tabula/nodes/test_paragraph.py +0 -0
  154. {odix-0.2.0 → odix-0.2.3}/tests/tabula/nodes/test_section.py +0 -0
  155. {odix-0.2.0 → odix-0.2.3}/tests/tabula/parser/blocks/test_blocks.py +0 -0
  156. {odix-0.2.0 → odix-0.2.3}/tests/tabula/parser/inlines/test_bold.py +0 -0
  157. {odix-0.2.0 → odix-0.2.3}/tests/tabula/parser/inlines/test_emphasis.py +0 -0
  158. {odix-0.2.0 → odix-0.2.3}/tests/tabula/parser/inlines/test_italic.py +0 -0
  159. {odix-0.2.0 → odix-0.2.3}/tests/tabula/parser/inlines/test_strike.py +0 -0
  160. {odix-0.2.0 → odix-0.2.3}/tests/tabula/parser/inlines/test_underline.py +0 -0
  161. {odix-0.2.0 → odix-0.2.3}/tests/tabula/parser/test_parser.py +0 -0
  162. {odix-0.2.0 → odix-0.2.3}/tests/tabula/tables/test_tables.py +0 -0
  163. {odix-0.2.0 → odix-0.2.3}/tests/tabula/test_combination.py +0 -0
  164. {odix-0.2.0 → odix-0.2.3}/tests/tabula/test_flux.py +0 -0
  165. {odix-0.2.0 → odix-0.2.3}/tests/tabula/test_tabula.py +0 -0
  166. {odix-0.2.0 → odix-0.2.3}/tests/tabula/visitor/test_visitor.py +0 -0
  167. {odix-0.2.0 → odix-0.2.3}/tests/test_cli.py +0 -0
  168. {odix-0.2.0 → odix-0.2.3}/tests/typus/test_document_style.py +0 -0
  169. {odix-0.2.0 → odix-0.2.3}/tests/typus/test_margins.py +0 -0
  170. {odix-0.2.0 → odix-0.2.3}/tests/typus/test_typus.py +0 -0
@@ -18,10 +18,10 @@ jobs:
18
18
 
19
19
  steps:
20
20
  - name: Checkout repository
21
- uses: actions/checkout@v4
21
+ uses: actions/checkout@v7
22
22
 
23
23
  - name: Set up Python
24
- uses: actions/setup-python@v5
24
+ uses: actions/setup-python@v7
25
25
  with:
26
26
  python-version: "3.12"
27
27
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: odix
3
- Version: 0.2.0
3
+ Version: 0.2.3
4
4
  Summary: An open-source publishing system for creating beautiful technical books from Markdown.
5
5
  Project-URL: Homepage, https://github.com/jmnavegomez/Odix
6
6
  Project-URL: Documentation, https://github.com/jmnavegomez/Odix/tree/main/docs
@@ -23,7 +23,7 @@ document:
23
23
 
24
24
  numbering:
25
25
  pages: true
26
- position: top
26
+ position: bottom
27
27
 
28
28
  language: spanish
29
29
 
@@ -9,7 +9,7 @@ packages = ["src/odix"]
9
9
 
10
10
  [project]
11
11
  name = "odix"
12
- version = "0.2.0"
12
+ version = "0.2.3"
13
13
  description = "An open-source publishing system for creating beautiful technical books from Markdown."
14
14
  readme = "README.md"
15
15
  requires-python = ">=3.12"
@@ -203,6 +203,9 @@ class Impressio:
203
203
  if document.twoside:
204
204
  options.append("twoside")
205
205
 
206
+ if document.chapters_start_on_odd_page:
207
+ options.append("openleft")
208
+
206
209
  document_class = (
207
210
  rf"\documentclass[{','.join(options)}]" rf"{{{document.document_class}}}"
208
211
  )
@@ -227,6 +230,30 @@ class Impressio:
227
230
 
228
231
  babel = rf"\usepackage[{language}]{{babel}}"
229
232
 
233
+ numbering = ""
234
+
235
+ if document.page_numbering:
236
+ if document.page_numbering_position == "top":
237
+ numbering = "\n".join(
238
+ [
239
+ r"\usepackage{fancyhdr}",
240
+ r"\pagestyle{fancy}",
241
+ r"",
242
+ r"\fancyhf{} % Limpia encabezados y pies",
243
+ r"\fancyhead[R]{\thepage}",
244
+ ]
245
+ )
246
+ else:
247
+ numbering = "\n".join(
248
+ [
249
+ r"\usepackage{fancyhdr}",
250
+ r"\pagestyle{fancy}",
251
+ r"",
252
+ r"\fancyhf{} % Limpia encabezados y pies",
253
+ r"\fancyfoot[C]{\thepage}",
254
+ ]
255
+ )
256
+
230
257
  style = "\n".join(
231
258
  [
232
259
  r"\setcounter{secnumdepth}{1}",
@@ -253,6 +280,7 @@ class Impressio:
253
280
  geometry,
254
281
  babel,
255
282
  "",
283
+ numbering,
256
284
  style,
257
285
  ]
258
286
  )
@@ -77,7 +77,7 @@ SYNTAX: dict[str, dict[Language, Syntax]] = {
77
77
  "Paragraph": {
78
78
  Language.LATEX: Syntax(
79
79
  "",
80
- "\n",
80
+ "\n\n",
81
81
  ),
82
82
  Language.HTML: Syntax(
83
83
  "<p>",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes