tesorotools-python 0.1.14__tar.gz → 0.1.15__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.
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/PKG-INFO +1 -1
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/builder.py +18 -6
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/lint.py +146 -10
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/skeleton.md +20 -6
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/skill/SKILL.md +52 -10
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/skill/reglas.md +44 -9
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/.gitignore +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/pyproject.toml +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/_build_context.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/_registry.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/_bars.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/_common.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/_dates.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/bar_line.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/barh_plot.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/box_plot.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/compact.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/intraday_plot.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/line_plot.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/matrix.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/names.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/plotly_backend.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/review.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/sankey.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/scatter.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/sharing.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/shock_plot.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/stacked.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/tikz_backend.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/treemap.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/type_curve.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/vector_plot.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/waterfall.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/README.md +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/CabinetGrotesk-Black.otf +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/CabinetGrotesk-Bold.otf +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/CabinetGrotesk-Extrabold.otf +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/CabinetGrotesk-Extralight.otf +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/CabinetGrotesk-Light.otf +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/CabinetGrotesk-Medium.otf +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/CabinetGrotesk-Regular.otf +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/CabinetGrotesk-Thin.otf +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/fonts/README.md +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/nota_template.dotx +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/plots.yaml +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/template.docx +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/assets/tesoro.mplstyle +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/data_sources/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/data_sources/debug.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/database/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/database/local.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/database/push.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/database/shared.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/dates.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/dependencies/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/dependencies/node.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/dependencies/resolution.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/driver.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/extend.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/cli.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/scaffold.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/article/main.tex.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/article/sections/01-introduccion.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/article/sections/02-analisis.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/article/sections/03-conclusiones.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/beamer/main.tex.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/beamer/slides/01-contexto.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/beamer/slides/02-analisis.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/beamer/slides/03-conclusiones.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/beamer/style/beamerthemeTesoro.sty +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/book/appendices/a-fuentes.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/book/chapters/01-introduccion.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/book/chapters/02-analisis.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/book/frontmatter/resumen.tex +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/book/main.tex.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/README.md.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/dot-gitignore +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/dot-vscode/settings.json +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/figures/dot-gitkeep +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/fonts/README.md +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/latexmkrc +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/refs.bib +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/style/tesoro.sty +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/style/tesorobrand.sty.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/latex/templates/common/style/tesorolocal.sty.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/manifest.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/charts.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/cli.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/inline.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/issues.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/markdown.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/pdf.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/template.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/offsets/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/offsets/offsets.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/offsets/outliers.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/orchestration.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/palette.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/pipeline/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/pipeline/diagnose.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/pipeline/engine.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/pipeline/rules.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/builder.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/charts.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/cli.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/fit.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/fonts.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/glossary.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/house.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/lint.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/markdown.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/native.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/pdf.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/sections.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/skeleton.md +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/skill/SKILL.md +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/skill/reglas.md +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/presentation/template.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/providers/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/providers/base.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/providers/bde.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/providers/ecb.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/providers/fred.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/providers/imf_irfcl.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/providers/lseg.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/py.typed +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/content/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/content/content.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/content/images.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/content/section.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/content/subtitle.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/content/table.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/content/text.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/content/title.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/document.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/render/report.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/scaffold.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/testing/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/testing/compare.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/utils/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/utils/config.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/utils/format.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/utils/globals.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/utils/matplotlib.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/utils/series.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/utils/shortcuts.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/utils/template.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/__init__.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/app.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/brand.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/cli.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/components.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/formatting.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/launcher.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/palette.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/period.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/plotting.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/scaffold.py +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/Dockerfile.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/README.md.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/dot-dockerignore.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/dot-gitignore.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/dot-streamlit/config.toml.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/pyproject.toml.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/src/$package/__init__.py.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/src/$package/cli.py.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/src/$package/main.py.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/src/$package/sections.py.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/tests/__init__.py.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/templates/tests/test_app.py.tmpl +0 -0
- {tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/web/theme.py +0 -0
|
@@ -113,6 +113,8 @@ _KINDS = {"grafico": _CHART, "tabla": _TABLE}
|
|
|
113
113
|
|
|
114
114
|
#: Headings whose section takes the smaller annex body.
|
|
115
115
|
_APPENDIX = re.compile(r"(?:anexo|ap[eé]ndice|referencias|bibliograf)", re.I)
|
|
116
|
+
#: Level-1 headings of the body that take no number.
|
|
117
|
+
_UNNUMBERED = re.compile(r"principales\s+mensajes", re.I)
|
|
116
118
|
#: Sections of references: left-aligned, so long addresses do not
|
|
117
119
|
#: stretch the justified lines.
|
|
118
120
|
_REFERENCES = re.compile(r"(?:referencias|bibliograf)", re.I)
|
|
@@ -153,6 +155,12 @@ def is_appendix(heading: str) -> bool:
|
|
|
153
155
|
return _APPENDIX.match(heading_text(heading)) is not None
|
|
154
156
|
|
|
155
157
|
|
|
158
|
+
def is_unnumbered(heading: str) -> bool:
|
|
159
|
+
"""A section of the body without number: the key messages, an
|
|
160
|
+
executive summary before the development."""
|
|
161
|
+
return _UNNUMBERED.fullmatch(heading_text(heading)) is not None
|
|
162
|
+
|
|
163
|
+
|
|
156
164
|
_PERCENT_UNIT = re.compile(r"\(?\s*%\s*\)?(.*)")
|
|
157
165
|
#: Abbreviated units spelled out in captions.
|
|
158
166
|
#: Abbreviated units at the start of a caption unit, and their names
|
|
@@ -666,7 +674,9 @@ class Note:
|
|
|
666
674
|
"""Heading of *level* 1 or 2 (numbered) or 3 (unnumbered).
|
|
667
675
|
|
|
668
676
|
A level-1 annex, references or bibliography heading starts a
|
|
669
|
-
section with the smaller annex body.
|
|
677
|
+
section with the smaller annex body. «Principales mensajes» is
|
|
678
|
+
the executive summary: unnumbered, so the first section of the
|
|
679
|
+
development is the 1.
|
|
670
680
|
"""
|
|
671
681
|
if level not in (1, 2, 3):
|
|
672
682
|
raise ValueError(f"nivel de título no válido: {level} (1, 2 o 3)")
|
|
@@ -682,11 +692,13 @@ class Note:
|
|
|
682
692
|
self._appendix = is_appendix(text)
|
|
683
693
|
self._references = _REFERENCES.search(text) is not None
|
|
684
694
|
paragraph = self._add(f"Heading{level}")
|
|
685
|
-
if self._appendix and level < 3
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
#
|
|
689
|
-
#
|
|
695
|
+
if (self._appendix and level < 3) or (
|
|
696
|
+
level == 1 and is_unnumbered(text)
|
|
697
|
+
):
|
|
698
|
+
# Annexes, references, bibliography and the key messages are
|
|
699
|
+
# not numbered sections («3. Anexo I» reads as a section of
|
|
700
|
+
# the body): the numbering of the style is switched off
|
|
701
|
+
# (numId 0) and so is the hanging indent left for the number.
|
|
690
702
|
pPr = _xml(paragraph)._p.get_or_add_pPr()
|
|
691
703
|
pPr.get_or_add_numPr().get_or_add_numId().val = 0
|
|
692
704
|
paragraph.paragraph_format.left_indent = Twips(0)
|
|
@@ -587,6 +587,28 @@ _KNOWN_ACRONYMS = {
|
|
|
587
587
|
"CNH",
|
|
588
588
|
"RMB",
|
|
589
589
|
}
|
|
590
|
+
#: Acronyms of institutions, taxes and terms a Spanish economist reads
|
|
591
|
+
#: without expansion: notes only (presentations keep their own list).
|
|
592
|
+
#: Fed, G7, G20 and pyme do not look like acronyms.
|
|
593
|
+
_COMMON_ACRONYMS = frozenset(
|
|
594
|
+
{
|
|
595
|
+
"BCE",
|
|
596
|
+
"FMI",
|
|
597
|
+
"INE",
|
|
598
|
+
"ICO",
|
|
599
|
+
"BdE",
|
|
600
|
+
"CNMV",
|
|
601
|
+
"BEI",
|
|
602
|
+
"AIReF",
|
|
603
|
+
"BOE",
|
|
604
|
+
"MEDE",
|
|
605
|
+
"OMC",
|
|
606
|
+
"OPEP",
|
|
607
|
+
"IRPF",
|
|
608
|
+
"IS",
|
|
609
|
+
"TAE",
|
|
610
|
+
}
|
|
611
|
+
)
|
|
590
612
|
#: An acronym: in capitals («CNMV») or with a lowercase letter inside
|
|
591
613
|
#: («AIReF», «BdE»).
|
|
592
614
|
_ACRONYM = re.compile(
|
|
@@ -792,14 +814,93 @@ def _sort_key(text: str) -> str:
|
|
|
792
814
|
return "".join(c for c in folded if not unicodedata.combining(c))
|
|
793
815
|
|
|
794
816
|
|
|
817
|
+
#: A cross reference to a chart or table, ``[@id]``.
|
|
818
|
+
_REF_ID = re.compile(r"\[@([\w.:-]+)\]")
|
|
819
|
+
|
|
820
|
+
|
|
795
821
|
def _cited(source: NoteSource) -> set[str]:
|
|
796
822
|
cited: set[str] = set()
|
|
797
823
|
for block in source.blocks:
|
|
798
824
|
if isinstance(block, (Paragraph, Bullet, Numbered, Heading)):
|
|
799
|
-
cited.update(
|
|
825
|
+
cited.update(_REF_ID.findall(block.text))
|
|
800
826
|
return cited
|
|
801
827
|
|
|
802
828
|
|
|
829
|
+
def _placement_issues(source: NoteSource) -> Iterator[Issue]:
|
|
830
|
+
"""Charts and tables in a section that does not cite them.
|
|
831
|
+
|
|
832
|
+
Each one goes right after the paragraph that first discusses it, in
|
|
833
|
+
the development: not grouped at the end nor after the key messages
|
|
834
|
+
(which may cite it too). Annexes hold their own charts.
|
|
835
|
+
"""
|
|
836
|
+
sections: list[tuple[str, set[str], list[tuple[int, str, str]]]] = [
|
|
837
|
+
("", set(), [])
|
|
838
|
+
]
|
|
839
|
+
for block in source.blocks:
|
|
840
|
+
if isinstance(block, Heading) and block.level == 1:
|
|
841
|
+
sections.append((heading_text(block.text), set(), []))
|
|
842
|
+
if isinstance(block, (Paragraph, Bullet, Numbered, Heading)):
|
|
843
|
+
sections[-1][1].update(_REF_ID.findall(block.text))
|
|
844
|
+
elif isinstance(block, ChartBlock):
|
|
845
|
+
chart = block.chart
|
|
846
|
+
sections[-1][2].append((block.line, chart.title, chart.label))
|
|
847
|
+
elif isinstance(block, ChartsBlock):
|
|
848
|
+
sections[-1][2].extend(
|
|
849
|
+
(block.line, c.title, c.label) for c in block.charts
|
|
850
|
+
)
|
|
851
|
+
elif isinstance(block, TableBlock):
|
|
852
|
+
table = block.table
|
|
853
|
+
sections[-1][2].append((block.line, table.title, table.label))
|
|
854
|
+
cited = _cited(source)
|
|
855
|
+
for name, refs, captions in sections:
|
|
856
|
+
if is_appendix(name):
|
|
857
|
+
continue
|
|
858
|
+
for line, title, label in captions:
|
|
859
|
+
if label in cited and label not in refs:
|
|
860
|
+
yield Issue(
|
|
861
|
+
line,
|
|
862
|
+
"maqueta",
|
|
863
|
+
f"«{title}» no se cita en su apartado: ponlo justo después"
|
|
864
|
+
" del párrafo que lo comenta, no agrupado al final ni tras"
|
|
865
|
+
" los Principales mensajes",
|
|
866
|
+
)
|
|
867
|
+
|
|
868
|
+
|
|
869
|
+
#: A sentence boundary: «. » and a capital, an opening quote or bracket.
|
|
870
|
+
_SENTENCE_SPLIT = re.compile(r"(?<=[.!?…])\s+(?=[¿¡«(\"A-ZÁÉÍÓÚÑ])")
|
|
871
|
+
#: «artículo 12 de la Ley 10/2014», «art. 92 del Reglamento (UE)
|
|
872
|
+
#: 575/2013»: the mention of an article of a norm.
|
|
873
|
+
_LEGAL_ARTICLE = re.compile(
|
|
874
|
+
r"\b(?:art[ií]culos?|arts?\.)\s+\d+(?:\.\d+)*[^.;:]{0,80}?"
|
|
875
|
+
r"\b(?:[Ll]ey|Real\s+Decreto|Decreto|Reglamento|Directiva|Orden"
|
|
876
|
+
r"|Constitución|Tratado|TFUE|TUE|Código)\b"
|
|
877
|
+
)
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
def _link_issues(line: int, text: str) -> Iterator[Issue]:
|
|
881
|
+
"""Articles of a norm mentioned in a sentence without a link.
|
|
882
|
+
|
|
883
|
+
The mention links to the article in the consolidated text (BOE,
|
|
884
|
+
EUR-Lex); any link in the sentence counts, also in a footnote.
|
|
885
|
+
"""
|
|
886
|
+
for sentence in _SENTENCE_SPLIT.split(text):
|
|
887
|
+
if _URL.search(sentence):
|
|
888
|
+
continue
|
|
889
|
+
if match := _LEGAL_ARTICLE.search(sentence):
|
|
890
|
+
yield Issue(
|
|
891
|
+
line,
|
|
892
|
+
"enlaces",
|
|
893
|
+
f"«{match.group(0)}»: enlaza la mención al artículo en el"
|
|
894
|
+
" texto consolidado (BOE o EUR-Lex) con [texto](https://...)",
|
|
895
|
+
)
|
|
896
|
+
return
|
|
897
|
+
|
|
898
|
+
|
|
899
|
+
def _introduces_list(text: str) -> bool:
|
|
900
|
+
"""A paragraph that ends in a colon: the list after it enumerates."""
|
|
901
|
+
return _strip_markup(_NOTE_MARKUP.sub("", text)).endswith(":")
|
|
902
|
+
|
|
903
|
+
|
|
803
904
|
def _caption_texts(
|
|
804
905
|
line: int, texts: Sequence[str], decimals: int | None
|
|
805
906
|
) -> Iterator[Issue]:
|
|
@@ -858,6 +959,18 @@ _NARRATIVE = re.compile(
|
|
|
858
959
|
)
|
|
859
960
|
|
|
860
961
|
|
|
962
|
+
#: A Markdown link, ``[text](url)`` (one level of brackets in the
|
|
963
|
+
#: address); not a footnote ``^[...]``.
|
|
964
|
+
_LINKED = re.compile(r"(?<!\^)\[([^\[\]]*)\]\((?:[^()\s]|\([^()\s]*\))*\)")
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
def _unlinked(text: str) -> str:
|
|
968
|
+
"""*text* with every link replaced by its text: a citation may be the
|
|
969
|
+
text of a link («[Anthropic (2026)](https://...)») or hold one
|
|
970
|
+
(«([BPI, 2026](https://...))»)."""
|
|
971
|
+
return _LINKED.sub(r"\1", text)
|
|
972
|
+
|
|
973
|
+
|
|
861
974
|
def _is_references(section: str) -> bool:
|
|
862
975
|
"""A references or bibliography section, also «Anexo. Referencias»."""
|
|
863
976
|
return re.search(r"referencias|bibliograf", section) is not None
|
|
@@ -910,14 +1023,15 @@ def _citation_issues(source: NoteSource) -> Iterator[Issue]:
|
|
|
910
1023
|
continue
|
|
911
1024
|
if not isinstance(block, (Paragraph, Bullet, Numbered)):
|
|
912
1025
|
continue
|
|
1026
|
+
text = _unlinked(block.text)
|
|
913
1027
|
if _is_references(section):
|
|
914
|
-
if entry := _REFERENCE.match(
|
|
1028
|
+
if entry := _REFERENCE.match(text):
|
|
915
1029
|
author, year, letter = entry.groups()
|
|
916
1030
|
references.append(
|
|
917
1031
|
(block.line, _names(author), year, letter, _fold(author))
|
|
918
1032
|
)
|
|
919
1033
|
continue
|
|
920
|
-
for narrative in _NARRATIVE.finditer(
|
|
1034
|
+
for narrative in _NARRATIVE.finditer(text):
|
|
921
1035
|
author, year, letter = narrative.groups()
|
|
922
1036
|
words = author.split()
|
|
923
1037
|
# «Anthropic (2026)», but also the last words of «según el
|
|
@@ -929,7 +1043,7 @@ def _citation_issues(source: NoteSource) -> Iterator[Issue]:
|
|
|
929
1043
|
citations.append(
|
|
930
1044
|
(block.line, names, year, letter, narrative.group(0), False)
|
|
931
1045
|
)
|
|
932
|
-
for group in _CITATION.finditer(
|
|
1046
|
+
for group in _CITATION.finditer(text):
|
|
933
1047
|
for part in group.group(1).split(";"):
|
|
934
1048
|
if cited := _CITED.match(part):
|
|
935
1049
|
author, year, letter = cited.groups()
|
|
@@ -1039,8 +1153,9 @@ def _acronym_issues(
|
|
|
1039
1153
|
|
|
1040
1154
|
The acronym of an author in a citation («(BCE, 2026)») is its name in
|
|
1041
1155
|
the references; acronyms in italics or in quoted titles are part of a
|
|
1042
|
-
title; well-known indices, benchmarks, currencies and sources
|
|
1043
|
-
expansion (*known*
|
|
1156
|
+
title; well-known indices, benchmarks, currencies and sources, and the
|
|
1157
|
+
acronyms in common use (BCE, FMI, INE...), need no expansion (*known*
|
|
1158
|
+
adds more).
|
|
1044
1159
|
"""
|
|
1045
1160
|
texts: list[tuple[int, str]] = []
|
|
1046
1161
|
appendix = False
|
|
@@ -1051,7 +1166,7 @@ def _acronym_issues(
|
|
|
1051
1166
|
block, (Paragraph, Bullet, Numbered, Heading)
|
|
1052
1167
|
):
|
|
1053
1168
|
texts.append((block.line, block.text))
|
|
1054
|
-
return _first_use_issues(texts, known)
|
|
1169
|
+
return _first_use_issues(texts, known | _COMMON_ACRONYMS)
|
|
1055
1170
|
|
|
1056
1171
|
|
|
1057
1172
|
def _first_use_issues(
|
|
@@ -1139,10 +1254,14 @@ def style_issues(
|
|
|
1139
1254
|
cited = _cited(source)
|
|
1140
1255
|
sections: list[str] = []
|
|
1141
1256
|
previous_connector = False
|
|
1257
|
+
# a paragraph ending in a colon opens an enumeration: its items need
|
|
1258
|
+
# no bold lead (outside the key messages)
|
|
1259
|
+
listing = False
|
|
1142
1260
|
references: list[tuple[int, str]] = []
|
|
1143
1261
|
section = ""
|
|
1144
1262
|
for block in source.blocks:
|
|
1145
1263
|
starts_connector = False
|
|
1264
|
+
opens_list = False
|
|
1146
1265
|
match block:
|
|
1147
1266
|
case Heading(line=line, text=text, level=level):
|
|
1148
1267
|
if level == 1:
|
|
@@ -1159,6 +1278,10 @@ def style_issues(
|
|
|
1159
1278
|
issues += _percent_issues(line, text, percent_decimals)
|
|
1160
1279
|
issues += _bold_issues(line, text, lead=lead)
|
|
1161
1280
|
issues += _foreign_issues(line, text, foreign_words)
|
|
1281
|
+
issues += _link_issues(line, text)
|
|
1282
|
+
opens_list = _introduces_list(text) or (
|
|
1283
|
+
continuation and listing
|
|
1284
|
+
)
|
|
1162
1285
|
if len(text) > MAX_PARAGRAPH:
|
|
1163
1286
|
issues.append(
|
|
1164
1287
|
Issue(
|
|
@@ -1192,13 +1315,24 @@ def style_issues(
|
|
|
1192
1315
|
| Numbered(line=line, text=text, level=level)
|
|
1193
1316
|
):
|
|
1194
1317
|
# The guide asks for a bold lead in key messages and in
|
|
1195
|
-
# the bullets of the development sections alike
|
|
1318
|
+
# the bullets of the development sections alike, but not
|
|
1319
|
+
# in the items of an enumeration («...en:» and a list).
|
|
1196
1320
|
appendix = is_appendix(section)
|
|
1197
|
-
|
|
1321
|
+
enumeration = listing and not section.startswith(
|
|
1322
|
+
"principales mensajes"
|
|
1323
|
+
)
|
|
1324
|
+
lead = (
|
|
1325
|
+
level == 1
|
|
1326
|
+
and bool(section)
|
|
1327
|
+
and not appendix
|
|
1328
|
+
and not enumeration
|
|
1329
|
+
)
|
|
1198
1330
|
issues += _text_issues(line, text, "prosa")
|
|
1199
1331
|
issues += _percent_issues(line, text, percent_decimals)
|
|
1200
1332
|
issues += _bold_issues(line, text, lead=lead)
|
|
1201
1333
|
issues += _foreign_issues(line, text, foreign_words)
|
|
1334
|
+
issues += _link_issues(line, text)
|
|
1335
|
+
opens_list = listing
|
|
1202
1336
|
case ChartBlock(line=line, chart=chart):
|
|
1203
1337
|
issues += _caption_issues(
|
|
1204
1338
|
line,
|
|
@@ -1250,6 +1384,7 @@ def style_issues(
|
|
|
1250
1384
|
case _:
|
|
1251
1385
|
pass
|
|
1252
1386
|
previous_connector = starts_connector
|
|
1387
|
+
listing = opens_list
|
|
1253
1388
|
prose = sum(
|
|
1254
1389
|
isinstance(b, (Paragraph, Bullet, Numbered)) for b in source.blocks
|
|
1255
1390
|
)
|
|
@@ -1265,7 +1400,7 @@ def style_issues(
|
|
|
1265
1400
|
f" tipo {source.kind}",
|
|
1266
1401
|
)
|
|
1267
1402
|
)
|
|
1268
|
-
keys = [_sort_key(t) for _, t in references]
|
|
1403
|
+
keys = [_sort_key(_unlinked(t)) for _, t in references]
|
|
1269
1404
|
if keys != sorted(keys):
|
|
1270
1405
|
issues.append(
|
|
1271
1406
|
Issue(
|
|
@@ -1276,6 +1411,7 @@ def style_issues(
|
|
|
1276
1411
|
)
|
|
1277
1412
|
issues += _acronym_issues(source, frozenset(known_acronyms))
|
|
1278
1413
|
issues += _citation_issues(source)
|
|
1414
|
+
issues += _placement_issues(source)
|
|
1279
1415
|
return sorted(issues, key=lambda i: i.line)
|
|
1280
1416
|
|
|
1281
1417
|
|
|
@@ -13,9 +13,12 @@ de estilo y se convierte a Word con:
|
|
|
13
13
|
Texto: **negrita** (solo la primera oración de cada párrafo o viñeta),
|
|
14
14
|
*cursiva* (palabras en otro idioma, títulos de publicaciones), [@id]
|
|
15
15
|
referencia a un gráfico o tabla con ese id, ^[texto] nota al pie,
|
|
16
|
-
[texto](https://...) enlace
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
[texto](https://...) enlace, sobre el texto que menciona un artículo de
|
|
17
|
+
una norma (al artículo concreto en el BOE o EUR-Lex) o un informe. No se
|
|
18
|
+
teclean números de apartado, gráfico ni tabla: los pone la plantilla
|
|
19
|
+
(«Principales mensajes» va sin número y el primer apartado es el 1). Los
|
|
20
|
+
comentarios como este no salen en el documento. Un valor con «:» o «#» va
|
|
21
|
+
entre comillas.
|
|
19
22
|
-->
|
|
20
23
|
|
|
21
24
|
Entradilla: un párrafo breve, sin título, que dice qué se analiza, con qué
|
|
@@ -34,9 +37,20 @@ datos y a qué fecha.
|
|
|
34
37
|
sin negritas e interpreta las cifras frente a una referencia.
|
|
35
38
|
|
|
36
39
|
<!--
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
+
Enumeración: el párrafo termina en dos puntos y las viñetas, si enumeran,
|
|
41
|
+
van en minúscula, sin negrita y con punto al final:
|
|
42
|
+
|
|
43
|
+
**La medida tiene tres efectos.** Cambia:
|
|
44
|
+
|
|
45
|
+
- la gobernanza de las entidades.
|
|
46
|
+
- los colchones de capital.
|
|
47
|
+
- la información a los supervisores.
|
|
48
|
+
|
|
49
|
+
Gráficos y tablas: descomentar y rellenar justo después del párrafo que
|
|
50
|
+
los comenta, intercalados con el texto (nunca todos al final de la nota).
|
|
51
|
+
Todos con «fuente» y citados en el texto con [@id] («como muestra el
|
|
52
|
+
[@ejemplo]»); nunca «Gráfico 2» a mano. Las rutas son relativas a este
|
|
53
|
+
fichero.
|
|
40
54
|
|
|
41
55
|
```grafico
|
|
42
56
|
imagen: graficos/ejemplo.png
|
|
@@ -30,19 +30,38 @@ Detalle en `docs/notas.md` del paquete, apartado «Instalación».
|
|
|
30
30
|
analisis`, por defecto) o el resumen de un documento (`tipo:
|
|
31
31
|
resumen`). Si falta algo esencial (sobre todo cifras y fuentes), pregunta;
|
|
32
32
|
no inventes cifras ni fuentes.
|
|
33
|
+
|
|
34
|
+
**Pregunta el enfoque antes de escribir** si el encargo trae pocas
|
|
35
|
+
indicaciones sobre la cuestión que hay que analizar o si hay dudas
|
|
36
|
+
importantes sobre la estructura: de una a cuatro preguntas, cada una con
|
|
37
|
+
dos a cuatro opciones concretas y la recomendada en primer lugar (qué
|
|
38
|
+
pregunta responde la nota, el ángulo, el destinatario, la extensión, los
|
|
39
|
+
apartados y los gráficos previstos). En Claude Code, con la herramienta
|
|
40
|
+
de preguntas (AskUserQuestion); en otros clientes, en el chat con las
|
|
41
|
+
opciones numeradas. Espera la respuesta antes de redactar. Si el encargo
|
|
42
|
+
es claro, no preguntes.
|
|
33
43
|
2. **Crea el esqueleto**: `tesorotools-nota new <fichero>.md --titulo "..."`.
|
|
34
44
|
Es la plantilla general de la nota: trae la estructura de la guía y, en
|
|
35
45
|
comentarios, un ejemplo de cada bloque. Puedes escribir el `.md`
|
|
36
46
|
directamente con el mismo formato.
|
|
37
47
|
3. **Redacta** siguiendo `reglas.md` (en esta carpeta; léelo antes de
|
|
38
48
|
escribir la primera nota de la sesión). Estructura de un análisis:
|
|
39
|
-
entradilla sin título, `# Principales mensajes` en viñetas
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
`#
|
|
49
|
+
entradilla sin título, `# Principales mensajes` en viñetas (el resumen
|
|
50
|
+
ejecutivo, sin número: el primer apartado del desarrollo es el 1),
|
|
51
|
+
apartados de desarrollo y, si se citan varios documentos,
|
|
52
|
+
`# Referencias`. Un resumen lleva `# Principales mensajes`,
|
|
53
|
+
`# Principales datos` y `# Resumen por secciones del documento`. Usa
|
|
54
|
+
viñetas dentro del desarrollo cuando un párrafo enumera cosas (se
|
|
55
|
+
introducen con dos puntos), enlaza cada artículo de una norma y cada
|
|
56
|
+
informe o artículo que menciones, y no desarrolles las siglas de uso
|
|
57
|
+
común (BCE, FMI, INE...; la lista, en `reglas.md`).
|
|
43
58
|
4. **Gráficos**: si hay datos, genera los PNG con los artists de
|
|
44
59
|
`tesorotools` como se explica en «Gráficos con tesorotools». Si el
|
|
45
|
-
usuario aporta imágenes, úsalas tal cual.
|
|
60
|
+
usuario aporta imágenes, úsalas tal cual. **Intercálalos con el
|
|
61
|
+
texto**: cada bloque `grafico`, `graficos` o `tabla` va justo después
|
|
62
|
+
del párrafo del desarrollo que lo comenta, nunca todos al final ni
|
|
63
|
+
detrás de los Principales mensajes (desde ellos se pueden citar con
|
|
64
|
+
`[@id]`, pero el bloque va en el desarrollo).
|
|
46
65
|
5. **Revisa**: `tesorotools-nota check <fichero>.md`. Muestra a la vez los
|
|
47
66
|
**errores** (lo que impide generar el Word, con su línea) y los
|
|
48
67
|
**avisos** de estilo y maqueta. Corrige los errores siempre; corrige cada
|
|
@@ -60,7 +79,9 @@ Detalle en `docs/notas.md` del paquete, apartado «Instalación».
|
|
|
60
79
|
- busque contradicciones entre los Principales mensajes, el desarrollo,
|
|
61
80
|
los gráficos y las tablas;
|
|
62
81
|
- compruebe que las medias y percentiles dicen su ventana («media desde
|
|
63
|
-
2013») y que los gráficos comparables comparten escala
|
|
82
|
+
2013») y que los gráficos comparables comparten escala;
|
|
83
|
+
- abra cada enlace y compruebe que lleva al documento o al artículo que
|
|
84
|
+
dice el texto (el ancla `#a12` o `#art_92`, la página `#page=N`).
|
|
64
85
|
|
|
65
86
|
Que devuelva una lista de incidencias (cifra o frase, línea, fuente
|
|
66
87
|
consultada, veredicto). Corrige cada una o explica al usuario por qué la
|
|
@@ -119,7 +140,7 @@ Entradilla: qué se analiza, con qué datos y a qué fecha.
|
|
|
119
140
|
- **Idea clave en negrita.** Desarrollo de la idea, véase el [@tipos].
|
|
120
141
|
- Viñeta de segundo nivel.
|
|
121
142
|
|
|
122
|
-
# Apartado (Heading1, numerado)
|
|
143
|
+
# Apartado (Heading1, numerado: el primero es el 1)
|
|
123
144
|
|
|
124
145
|
## Subapartado (Heading2, numerado)
|
|
125
146
|
|
|
@@ -127,11 +148,22 @@ Entradilla: qué se analiza, con qué datos y a qué fecha.
|
|
|
127
148
|
|
|
128
149
|
**Primera oración en negrita.** Resto del párrafo^[Nota al pie con
|
|
129
150
|
*cursiva* y [enlace](https://www.bde.es).]. Una nota larga se define
|
|
130
|
-
aparte[^bis], y una cita lleva autor y año
|
|
151
|
+
aparte[^bis], y una cita lleva autor y año, con su enlace al documento
|
|
152
|
+
([Autor, 2026](https://www.ejemplo.es/informe.pdf#page=12)).
|
|
131
153
|
|
|
132
154
|
[^bis]: **Término**: una nota al pie de varias líneas, que sigue
|
|
133
155
|
en las líneas siguientes hasta una línea en blanco.
|
|
134
156
|
|
|
157
|
+
**La reforma cambia tres cosas.** El
|
|
158
|
+
[artículo 12 de la Ley 10/2014](https://www.boe.es/buscar/act.php?id=BOE-A-2014-6726#a12)
|
|
159
|
+
modifica:
|
|
160
|
+
|
|
161
|
+
- la gobernanza de las entidades.
|
|
162
|
+
- los colchones de capital.
|
|
163
|
+
- la información a los supervisores.
|
|
164
|
+
|
|
165
|
+
<!-- aquí, justo después del párrafo que lo comenta, el bloque del [@tipos] -->
|
|
166
|
+
|
|
135
167
|
1. **Primer paso.** Lista numerada: empieza por el uno en cada lista.
|
|
136
168
|
2. **Segundo paso.** Cada elemento, con su desarrollo.
|
|
137
169
|
- Viñeta o subelemento («a)») con dos o cuatro espacios de sangría.
|
|
@@ -193,12 +225,22 @@ Marcado dentro del texto:
|
|
|
193
225
|
izquierda y en orden alfabético. En ellas no se aplican las reglas de
|
|
194
226
|
cifras y siglas: copian títulos y números de documento tal como se
|
|
195
227
|
publicaron.
|
|
228
|
+
- «Principales mensajes» tampoco se numera (es el resumen ejecutivo), pero
|
|
229
|
+
lleva el cuerpo normal y sus viñetas, entradilla en negrita: el primer
|
|
230
|
+
apartado del desarrollo sale como «1.».
|
|
231
|
+
- Un párrafo que termina en dos puntos abre una enumeración: sus viñetas o
|
|
232
|
+
elementos numerados no exigen entradilla en negrita (salvo en los
|
|
233
|
+
Principales mensajes). La lista acaba en el siguiente párrafo o título.
|
|
196
234
|
- Un párrafo sangrado (tres espacios) tras una línea en blanco, debajo de
|
|
197
235
|
un elemento de lista, es otro párrafo de ese elemento: la lista sigue y
|
|
198
236
|
el siguiente elemento conserva su número.
|
|
199
237
|
- Las citas se reconocen como «(Autor, 2026)» y como «Autor (2026)»
|
|
200
|
-
(«Anthropic (2026) documentó...»)
|
|
201
|
-
|
|
238
|
+
(«Anthropic (2026) documentó...»), también con enlace
|
|
239
|
+
(«([BPI, 2026](https://...))», «[Anthropic (2026)](https://...)»); si hay
|
|
240
|
+
citas, la nota ha de tener «# Referencias».
|
|
241
|
+
- El revisor avisa de la mención de un artículo de una ley, real decreto,
|
|
242
|
+
reglamento, directiva u orden sin enlace en su oración, y de un gráfico
|
|
243
|
+
o tabla que está en un apartado que no lo cita (salvo en los anexos).
|
|
202
244
|
|
|
203
245
|
### Lo que NO se admite
|
|
204
246
|
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/note/skill/reglas.md
RENAMED
|
@@ -11,10 +11,20 @@ reglas son las que dependen de quien escribe.
|
|
|
11
11
|
analiza, con qué datos y a qué fecha.
|
|
12
12
|
- **Principales mensajes**: las ideas clave en viñetas, cada una con su
|
|
13
13
|
primera frase en negrita. Quien lea solo este apartado ha de llevarse la
|
|
14
|
-
conclusión de la nota.
|
|
14
|
+
conclusión de la nota. Es el resumen ejecutivo: va sin número y el primer
|
|
15
|
+
apartado del desarrollo es el 1.
|
|
15
16
|
- **Apartados de desarrollo**: cada uno trata una idea, con párrafos o
|
|
16
17
|
viñetas que empiezan por una entradilla en negrita, y se cierra, cuando
|
|
17
18
|
aporta, con un párrafo de síntesis que interpreta el conjunto.
|
|
19
|
+
- **Gráficos y tablas intercalados**: cada uno va justo después del párrafo
|
|
20
|
+
del desarrollo que lo comenta por primera vez, de modo que el lector ve el
|
|
21
|
+
dato junto a su lectura. Nunca se agrupan al final de la nota ni detrás de
|
|
22
|
+
los Principales mensajes (que pueden citarlos, pero no los llevan).
|
|
23
|
+
- **Enumeraciones**: cuando un párrafo enumera varias cosas, se ve mejor
|
|
24
|
+
con viñetas. El párrafo lleva su entradilla en negrita y termina en dos
|
|
25
|
+
puntos; si es una enumeración, cada viñeta es un elemento corto, en
|
|
26
|
+
minúscula, sin negrita y con punto al final. Si las viñetas desarrollan
|
|
27
|
+
ideas más complejas y no solo enumeran, pueden tener más de una frase.
|
|
18
28
|
- **Referencias**: al final, cuando la nota cita varios documentos.
|
|
19
29
|
- **Resúmenes de documentos**: se organizan en Principales mensajes,
|
|
20
30
|
Principales datos y Resumen por secciones del documento, de modo que todas
|
|
@@ -22,17 +32,18 @@ reglas son las que dependen de quien escribe.
|
|
|
22
32
|
es suyo y se distingue de cualquier valoración propia.
|
|
23
33
|
- **Párrafos**: un párrafo, una idea. La primera oración, en negrita,
|
|
24
34
|
resume el contenido; el resto lo desarrolla sin negritas. Se evitan los
|
|
25
|
-
párrafos de más de seis o siete líneas
|
|
26
|
-
|
|
35
|
+
párrafos de más de seis o siete líneas; si un párrafo enumera, mejor en
|
|
36
|
+
viñetas (véase Enumeraciones).
|
|
27
37
|
- **Extensión**: la pedida. Si hay que recortar, se suprime antes el
|
|
28
38
|
detalle que los mensajes, y antes un gráfico redundante que el texto que
|
|
29
39
|
lo interpreta.
|
|
30
40
|
|
|
31
41
|
## Tono narrativo
|
|
32
42
|
|
|
33
|
-
Frases que explican e interpretan, no
|
|
34
|
-
|
|
35
|
-
|
|
43
|
+
Frases que explican e interpretan, no volcados de datos: las viñetas
|
|
44
|
+
ordenan una enumeración, no sustituyen la explicación. Cada cifra va
|
|
45
|
+
acompañada de su lectura: qué significa, frente a qué referencia (su media
|
|
46
|
+
histórica, otro país, el año anterior) y qué implica.
|
|
36
47
|
|
|
37
48
|
## Registro y tono
|
|
38
49
|
|
|
@@ -73,7 +84,10 @@ referencia (su media histórica, otro país, el año anterior) y qué implica.
|
|
|
73
84
|
entre espacios. El guion para intervalos (2021-2025, 10-30 años); el
|
|
74
85
|
signo menos para cifras negativas (lo pone la herramienta).
|
|
75
86
|
- **Siglas**: se desarrollan la primera vez, con la sigla entre paréntesis:
|
|
76
|
-
Banco de Pagos Internacionales (BPI).
|
|
87
|
+
Banco de Pagos Internacionales (BPI). No se desarrollan las de uso común
|
|
88
|
+
para un economista español: BCE, FMI, OCDE, INE, ICO, BdE, CNMV, BEI,
|
|
89
|
+
AIReF, BOE, MEDE, OMC, OPEP, G7, G20, Fed (Reserva Federal), IRPF, IS,
|
|
90
|
+
pyme, TAE, IBEX, PIB, IPC, UE e IVA. Sigla española cuando existe (BPI,
|
|
77
91
|
FMI, BCE, JERS, OCDE, CEF, BEI; no ECB, IMF, BIS, FSB). Sin plural gráfico
|
|
78
92
|
(las IIC, no las IICs).
|
|
79
93
|
- **Números**: coma decimal y punto de millares (1.246; 28,7; 570.000),
|
|
@@ -129,6 +143,26 @@ referencia (su media histórica, otro país, el año anterior) y qué implica.
|
|
|
129
143
|
- **Gráficos y tablas**: todos con `fuente` y citados en el texto con
|
|
130
144
|
`[@id]`, nunca «Gráfico 2» a mano.
|
|
131
145
|
|
|
146
|
+
## Enlaces
|
|
147
|
+
|
|
148
|
+
- **Normas**: la mención de un artículo de una ley, real decreto,
|
|
149
|
+
reglamento, directiva u orden lleva el enlace sobre el propio texto, al
|
|
150
|
+
artículo concreto cuando se puede. En el BOE, el texto consolidado con el
|
|
151
|
+
ancla del artículo:
|
|
152
|
+
[artículo 12 de la Ley 10/2014](https://www.boe.es/buscar/act.php?id=BOE-A-2014-6726#a12)
|
|
153
|
+
(`#a12`; las disposiciones llevan el ordinal en letra, `#daprimera`,
|
|
154
|
+
`#dtsegunda`, `#dfprimera`: cópialo del índice del BOE). En EUR-Lex, la
|
|
155
|
+
versión HTML con el ancla `#art_N`:
|
|
156
|
+
[artículo 92 del Reglamento (UE) 575/2013](https://eur-lex.europa.eu/legal-content/ES/TXT/HTML/?uri=CELEX:32013R0575#art_92).
|
|
157
|
+
Si no hay ancla, el enlace va a la norma.
|
|
158
|
+
- **Informes y artículos**: la mención de un informe, documento de trabajo,
|
|
159
|
+
artículo académico o similar enlaza al documento sobre el propio texto,
|
|
160
|
+
«[Anthropic (2026)](https://...)» o «([BPI, 2026](https://...))», y al
|
|
161
|
+
PDF en su página (`#page=12`) si se cita una página concreta; además
|
|
162
|
+
tiene su entrada, también con enlace, en Referencias.
|
|
163
|
+
- **Comprobación**: cada enlace se abre antes de entregar y lleva a lo que
|
|
164
|
+
dice el texto (la norma y el artículo, el documento y la página).
|
|
165
|
+
|
|
132
166
|
## Revisión antes de entregar
|
|
133
167
|
|
|
134
168
|
Comprobar cada cifra contra su fuente; que los gráficos citados coincidan
|
|
@@ -138,5 +172,6 @@ intermedias y porcentajes mal escritos. `tesorotools-nota check` detecta
|
|
|
138
172
|
buena parte de esto (también juicios como «burbuja», «excesiva» o
|
|
139
173
|
«insostenible» salvo atribuidos o en nombres históricos como «burbuja
|
|
140
174
|
puntocom», adjetivos vacíos, conectores repetidos al comienzo de párrafos
|
|
141
|
-
seguidos, siglas sin desarrollar, cargos en mayúscula
|
|
142
|
-
desordenadas
|
|
175
|
+
seguidos, siglas sin desarrollar, cargos en mayúscula, referencias
|
|
176
|
+
desordenadas, artículos de normas sin enlace y gráficos fuera del apartado
|
|
177
|
+
que los comenta), pero no todo: relee siempre.
|
|
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
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/barh_plot.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/intraday_plot.py
RENAMED
|
File without changes
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/line_plot.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/plotly_backend.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/shock_plot.py
RENAMED
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/tikz_backend.py
RENAMED
|
File without changes
|
|
File without changes
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/type_curve.py
RENAMED
|
File without changes
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/vector_plot.py
RENAMED
|
File without changes
|
{tesorotools_python-0.1.14 → tesorotools_python-0.1.15}/src/tesorotools/artists/waterfall.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|