paperpush 0.5.2__tar.gz → 0.5.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.
- {paperpush-0.5.2 → paperpush-0.5.3}/PKG-INFO +2 -2
- {paperpush-0.5.2 → paperpush-0.5.3}/README.md +1 -1
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/__init__.py +1 -1
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_docs/agents.md +2 -2
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-add-venue-validate/SKILL.md +8 -5
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-transfer/SKILL.md +52 -9
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/ai_policy.py +4 -2
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/anonymity.py +7 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/bibliography_check.py +2 -2
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/citation_check.py +10 -9
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/cli.py +2 -1
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/colorblind.py +15 -10
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/cover_letter_check.py +21 -7
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/figure_check.py +7 -4
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/layout_check.py +4 -2
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/manuscript.py +77 -8
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/manuscript_requirements.json +306 -150
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/references.py +31 -1
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/reproducibility_check.py +5 -5
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/requirements.py +7 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/requirements_check.py +71 -3
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/rigor_check.py +14 -10
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/sensitive.py +9 -2
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/european_radiology.sub.txt +4 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/validate.py +5 -3
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/validation_check_ids.json +1 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush.egg-info/PKG-INFO +2 -2
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush.egg-info/SOURCES.txt +1 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/pyproject.toml +1 -1
- paperpush-0.5.3/tests/test_validate_major_fixes.py +451 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/LICENSE +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/__main__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_logging.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-add-venue/SKILL.md +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-autofill/SKILL.md +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-fix/SKILL.md +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-portal-debug/SKILL.md +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-prepare-submission/SKILL.md +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-respond-to-reviewers/SKILL.md +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-submit/SKILL.md +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/_skills/paperpush-validate/SKILL.md +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/ai_validate.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/autofill.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/check_ids.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/codegen/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/codegen/model.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/codegen/recorder.js +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/codegen/session.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/common_fields.json +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/consistency.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/credentials.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/database.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/document.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/docx_format.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/feature_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/figure_design_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/file_inputs.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/filematch.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/formatter.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/front_matter_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/hidden_text.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/latex_cleaner.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/manuscript_requirements.schema.json +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/mcp_server.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/openalex.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/openreview_profiles.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/orcid.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/pdf_layout.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/pdf_report.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/placeholders.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/prose_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/publisher_lookup.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/reference_review.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/reference_search.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/report.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/reviewer_finder.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/revision.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/schema_models.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/skills.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/style_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/acl_arr.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/ajhg.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/arxiv.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/bioinformatics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/biorxiv.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/bmc_bioinformatics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/bmc_biology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/bmc_genomics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/bmc_medicine.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/bmj.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/cell.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/cell_genomics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/cell_reports.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/cell_reports_methods.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/cell_stem_cell.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/cell_systems.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/combinatorica.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/communications_biology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/cvpr_2027.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/discrete_mathematics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/elife.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/frontiers_bioinformatics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/frontiers_genetics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/frontiers_immunology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/genome_biology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/genome_medicine.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/genome_research.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/ieee_tmi.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/ieee_tnnls.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/ieee_tpami.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/iscience.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/jama.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/jiim.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/jmlr.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/jnm.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/lancet.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/lancet_digital_health.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/medical_image_analysis.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/medrxiv.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/molecular_cell.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nar_cancer.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nar_genomics_bioinformatics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_biomedical_engineering.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_biotech.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_cell_biology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_communications.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_computational_science.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_genetics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_machine_intelligence.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_medicine.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_methods.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_neuroscience.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nature_structural_molecular_biology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nejm.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/neuron.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/npj_digital_medicine.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/nucleic_acids_research.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/patterns.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/plos_biology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/plos_compbio.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/plos_genetics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/plos_medicine.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/plos_one.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/pnas.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/radiology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/radiology_ai.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/science.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/science_advances.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/science_immunology.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/science_robotics.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/science_signaling.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/science_translational_medicine.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/scientific_reports.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/subfile_templates/tmlr.sub.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/submission_forms.json +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/submission_forms.schema.json +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/template_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/templates.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/tex_format.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venue_data.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venue_select.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venuefile.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/aaai_2027_countries.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/aaai_2027_topics.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/arxiv_categories.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/bioinformatics_keywords.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/genome_biology_institution_countries.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/iclr_2027_primary_areas.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/nature_biotech_categories.json +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/nature_categories.json +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/nature_methods_categories.json +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/plos_compbio_classifications.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/plos_compbio_funding_countries.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/science_advances_subjects.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/science_immunology_subjects.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/science_robotics_subjects.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/science_signaling_subjects.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/science_subjects.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/_assets/science_translational_medicine_subjects.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/arxiv/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/arxiv/arxiv.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/base.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/common.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/discrete_mathematics/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/discrete_mathematics/discrete_mathematics.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editflow/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editflow/combinatorica.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editflow/main.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editorialmanager/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editorialmanager/cell.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editorialmanager/cell_genomics.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editorialmanager/cell_systems.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editorialmanager/main.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/editorialmanager/plos_compbio.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/login.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/nature/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/nature/main.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/nature/nature.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/nature/nature_biomedical_engineering.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/nature/nature_biotech.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/nature/nature_machine_intelligence.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/nature/nature_methods.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/openreview/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/openreview/aaai_2027.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/openreview/iclr_2027.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/openreview/main.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/openrxiv/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/openrxiv/biorxiv.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/openrxiv/main.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/openrxiv/medrxiv.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/recovery.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/recovery_ai.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/recovery_channel.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/recovery_report.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/scholarone/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/scholarone/bioinformatics.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/scholarone/main.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/scholarone/nucleic_acids_research.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/science/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/science/science.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/snapp/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/snapp/bmc_bioinformatics.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/snapp/genome_biology.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/snapp/main.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/template/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues/template/template.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues.json +1 -1
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/venues.schema.json +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/__init__.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/app.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/shared.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/add-venue.html +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/add-venue.js +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/app.js +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/checks.js +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/fonts/OFL-STIXTwoText.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/fonts/OFL-SourceSans3.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/fonts/source-sans-3-latin-ext.woff2 +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/fonts/source-sans-3-latin.woff2 +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/fonts/stix-two-text-italic-latin-ext.woff2 +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/fonts/stix-two-text-italic-latin.woff2 +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/fonts/stix-two-text-latin-ext.woff2 +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/fonts/stix-two-text-latin.woff2 +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/index.html +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/shared.js +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/style.css +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/subfile.js +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush/web/static/viewer.js +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush.egg-info/dependency_links.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush.egg-info/entry_points.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush.egg-info/requires.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/paperpush.egg-info/top_level.txt +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/setup.cfg +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_ai_policy.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_anonymity.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_autofill.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_bibliography_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_caption_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_check_guidelines.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_check_submit_walkthrough.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_cli_web.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_codegen.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_colorblind.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_cover_letter_and_counts.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_editorialmanager_login.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_feature_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_figure_design_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_filematch.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_find_reviewers.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_format.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_front_matter_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_hidden_text.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_internals.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_latex_cleaner.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_logging.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_login.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_markdown.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_mcp_server.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_nature_biomedical_engineering.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_nature_machine_intelligence.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_openalex.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_openreview_profiles.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_pick_venue.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_placeholders.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_prose_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_publisher_rules.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_recovery.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_recovery_ai.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_recovery_channel.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_recovery_coverage.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_recovery_report.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_reference_review.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_reference_search.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_references.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_reproducibility_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_requirements.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_revision.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_rigor_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_sensitive.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_skills.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_style_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_subfile.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_submit.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_template_check.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_unattended_sign_in.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_update_guidelines.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_disable.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_files.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_fixes_guidelines.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_fixes_integrity.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_fixes_layout.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_fixes_orchestration.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_fixes_prose.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_fixes_references.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_json.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_only_venue.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validate_report.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_validation_check_count.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_venue_consistency.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_venue_data.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_venue_interface.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_venuefile.py +0 -0
- {paperpush-0.5.2 → paperpush-0.5.3}/tests/test_web.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: paperpush
|
|
3
|
-
Version: 0.5.
|
|
3
|
+
Version: 0.5.3
|
|
4
4
|
Summary: A Python library for automating the submission of manuscripts to academic venues.
|
|
5
5
|
Author-email: Joseph Rich <josephrich98@gmail.com>
|
|
6
6
|
Maintainer-email: Joseph Rich <josephrich98@gmail.com>
|
|
@@ -61,7 +61,7 @@ Prepare manuscripts for submission to preprint servers, journals, and conference
|
|
|
61
61
|
PaperPush provides the following services:
|
|
62
62
|
- A standardized system to share all metadata submitted to a venue (the .sub file)
|
|
63
63
|
<!-- BEGIN VALIDATION CHECK COUNT -->
|
|
64
|
-
- Extensive venue-specific manuscript guideline checking including section lengths, reference hallucination, figure resolution, link validation, and anonymization —
|
|
64
|
+
- Extensive venue-specific manuscript guideline checking including section lengths, reference hallucination, figure resolution, link validation, and anonymization — 154 distinct validation check types. The checks in a report depend on the venue and files. [See the full list](https://paperpush.readthedocs.io/en/latest/validation-checks.html).
|
|
65
65
|
<!-- END VALIDATION CHECK COUNT -->
|
|
66
66
|
- A central database of journal/conference manuscript requirements and submission data
|
|
67
67
|
- Automated and fast submission portal filling with deterministic scripts
|
|
@@ -7,7 +7,7 @@ Prepare manuscripts for submission to preprint servers, journals, and conference
|
|
|
7
7
|
PaperPush provides the following services:
|
|
8
8
|
- A standardized system to share all metadata submitted to a venue (the .sub file)
|
|
9
9
|
<!-- BEGIN VALIDATION CHECK COUNT -->
|
|
10
|
-
- Extensive venue-specific manuscript guideline checking including section lengths, reference hallucination, figure resolution, link validation, and anonymization —
|
|
10
|
+
- Extensive venue-specific manuscript guideline checking including section lengths, reference hallucination, figure resolution, link validation, and anonymization — 154 distinct validation check types. The checks in a report depend on the venue and files. [See the full list](https://paperpush.readthedocs.io/en/latest/validation-checks.html).
|
|
11
11
|
<!-- END VALIDATION CHECK COUNT -->
|
|
12
12
|
- A central database of journal/conference manuscript requirements and submission data
|
|
13
13
|
- Automated and fast submission portal filling with deterministic scripts
|
|
@@ -61,7 +61,7 @@ open the `SKILL.md` and follow it as written.
|
|
|
61
61
|
| `paperpush-autofill` | Reads the manuscript directory, writes `values.json`, and applies it with `paperpush autofill --engine manual`. Leaves `never` fields for the author. | wants a `.sub` filled from their files, and nothing else yet. |
|
|
62
62
|
| `paperpush-validate` | Runs `paperpush validate`, then does the checks that need a reader (lettering in raster figures, panel labels, figure and panel content vs. legends and text, free-text guideline rules, `.sub` vs manuscript) through `--ai-tasks` / `--ai-results`. Optionally saves the report. For a venue paperpush does not support yet, builds a temporary entry with `paperpush-add-venue-validate` (temporary mode) and validates against it. | asks whether a manuscript or `.sub` is ready, meets a venue's guidelines, or passes validation, or wants the AI checks or a saved report. |
|
|
63
63
|
| `paperpush-fix` | Backs up the files, runs `paperpush validate --json`, finds the editable source behind each file (the `.tex`/`.docx` behind a PDF), fixes the mechanical issues and trims text over a limit by at most 100 words and 50% of the limit, rebuilds the PDF, and validates again, for up to three rounds. For page-layout issues it offers `paperpush format` first (the venue's template, applied to a new copy). Reports what it fixed, what needs the author's decision, and what it can't fix. Never ticks a confirmation or invents content. | asks to fix what validate found, to make a `.sub` pass validation, or to clean up the errors and warnings. |
|
|
64
|
-
| `paperpush-transfer` | Moves a manuscript prepared for one venue to another: copies the files into `<source-dir>/<venue>/` (never touching the originals), creates the new `.sub`, runs `autofill` reusing the values in earlier `.sub` files, reformats the manuscript copy for the new venue with `paperpush format` (its template when one is found, else its layout rules), runs `validate` (offering `fix`), and writes `transfer.txt` listing every change. | wants to transfer, resubmit, or move a manuscript from one venue to another, e.g. after a rejection. |
|
|
64
|
+
| `paperpush-transfer` | Moves a manuscript prepared for one venue to another: copies the files into `<source-dir>/<venue>/` (never touching the originals), creates the new `.sub`, runs `autofill` reusing the values in earlier `.sub` files, reformats the manuscript copy for the new venue with `paperpush format` (its template when one is found, else its layout rules), runs `validate` (offering `fix`), and writes `transfer.txt` listing every change. For a venue paperpush does not support yet, builds a draft entry with `paperpush-add-venue-validate` (temporary mode), kept in the transfer's `venue_draft/`, and never submits. | wants to transfer, resubmit, or move a manuscript from one venue to another, e.g. after a rejection. |
|
|
65
65
|
| `paperpush-respond-to-reviewers` | Two phases. Phase 1: makes `<manuscript-dir>/revisionN/` (N = one more than the existing revisions), copies the manuscript files and the reviews into it, drafts the response document (comments verbatim in italics, responses in plain text), and proposes a plan per comment, then stops for the author. Phase 2, once approved: revises the copy, writes the responses, builds the marked manuscript (`revision.marked_manuscript` from the venue's guidelines unless the user overrides it; default red text; or highlight, Word Track Changes, or none), and runs `validate`. Never touches the originals or submits. | has received reviews or a decision letter and wants a revision, a response to reviewers, or a rebuttal letter. |
|
|
66
66
|
| `paperpush-submit` | Takes a filled `.sub` to the portal: re-checks the login (`paperpush login <venue> --check`), confirms with the user, runs `submit` (or `submit(skip_validate=true)` when asked to skip validation), and follows the run, handing a failed step to `paperpush-portal-debug`. Stops before the final submit. | has a `.sub` ready and wants the portal filled in, e.g. "fill out the submission portal to nature", optionally "skip validation". |
|
|
67
67
|
| `paperpush-portal-debug` | Gets a stalled `paperpush submit` run past the failing step on the live page (`submit_page` / `submit_act` / `submit_resume`), logs every runner change it needs, and puts those changes into the runner with a test when working in a source checkout. Never sends the submission. | reports that `submit` is stuck, failed at a step, or hit a portal that changed. Also use it yourself whenever `submit_status` shows `recovery.paused`. |
|
|
@@ -70,7 +70,7 @@ open the `SKILL.md` and follow it as written.
|
|
|
70
70
|
|
|
71
71
|
The skills call each other where the steps overlap: `prepare-submission` runs
|
|
72
72
|
`autofill`, `validate`, and `submit`, and offers `fix` when validate stops it;
|
|
73
|
-
`transfer` runs `autofill` and `validate`, and offers `fix`; `respond-to-reviewers` runs `validate` (and `autofill` for a new `.sub`), and offers `fix`; `validate`
|
|
73
|
+
`transfer` runs `autofill` and `validate`, and offers `fix`; `respond-to-reviewers` runs `validate` (and `autofill` for a new `.sub`), and offers `fix`; `validate`, `prepare-submission`, and `transfer` run `add-venue-validate` in temporary mode for a venue paperpush does not support; `fix` uses `validate`'s AI-check steps
|
|
74
74
|
in its first and last rounds; `submit` uses `portal-debug` for a
|
|
75
75
|
step that fails; `add-venue` runs `add-venue-validate`, and uses
|
|
76
76
|
`portal-debug` for a live step that stalls. Don't run the same step twice.
|
|
@@ -25,12 +25,15 @@ its root. This skill edits the venue databases, runner code, and tests, and
|
|
|
25
25
|
uses the repo's `scripts/` and `tests/`. Working from a pip install? Ask the
|
|
26
26
|
user to clone the repo first, or use temporary mode.
|
|
27
27
|
|
|
28
|
-
**Temporary mode** (no clone needed): when `paperpush-validate
|
|
29
|
-
|
|
30
|
-
venue
|
|
31
|
-
|
|
28
|
+
**Temporary mode** (no clone needed): when `paperpush-validate`,
|
|
29
|
+
`paperpush-prepare-submission`, or `paperpush-transfer` calls this skill for a
|
|
30
|
+
venue paperpush does not support, or the user wants to try a venue's rules
|
|
31
|
+
without adding it to paperpush, write the entry into a draft directory instead
|
|
32
|
+
of paperpush's databases. Everything goes under
|
|
32
33
|
`<scratch>/venue_drafts/<slug>/` (the agent's scratch directory, or
|
|
33
|
-
`$TMPDIR/paperpush_venue_drafts/<slug>/` if there is none)
|
|
34
|
+
`$TMPDIR/paperpush_venue_drafts/<slug>/` if there is none). If the calling
|
|
35
|
+
skill names a draft directory, use that in place of
|
|
36
|
+
`<scratch>/venue_drafts/<slug>/` throughout:
|
|
34
37
|
|
|
35
38
|
- the venue file is `<scratch>/venue_drafts/<slug>/<slug>.txt` (step 1's `-o`);
|
|
36
39
|
- step 4 is only:
|
|
@@ -7,8 +7,9 @@ description: >-
|
|
|
7
7
|
(reusing the values in any .sub files from earlier submissions), reformat
|
|
8
8
|
the manuscript for the new venue (its Word/LaTeX template when one is found,
|
|
9
9
|
else its layout rules), validate it, and write transfer.txt describing what
|
|
10
|
-
changed.
|
|
11
|
-
|
|
10
|
+
changed. For a venue paperpush does not support yet, first builds a draft
|
|
11
|
+
entry from the venue's guidelines and transfers against that. The original
|
|
12
|
+
files are never modified. Triggers: "transfer my manuscript to <venue>", "resubmit
|
|
12
13
|
this paper to <venue>", "my paper was rejected from <venue>, move it to
|
|
13
14
|
<venue>", "reuse my nature sub for cell", "paperpush-transfer".
|
|
14
15
|
---
|
|
@@ -33,9 +34,11 @@ delete anything in the source directory**; every change happens in the copy.
|
|
|
33
34
|
Required. If the user did not give it, ask in plain text. Never guess it,
|
|
34
35
|
scan the repository for candidate folders, or fall back to test fixtures.
|
|
35
36
|
2. **The target venue slug** (e.g. `cell`). Ask or infer it from their
|
|
36
|
-
message, and confirm it with `paperpush venues
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
message, and confirm it with `paperpush venues` (try its name, abbreviation,
|
|
38
|
+
and publisher's title). If it is not listed, see
|
|
39
|
+
[Target venue paperpush does not support](#target-venue-paperpush-does-not-support).
|
|
40
|
+
If it is the same venue as the earlier `.sub`, this is not a transfer: say
|
|
41
|
+
so, and point them to `paperpush-prepare-submission` or `paperpush-fix`.
|
|
39
42
|
3. **Earlier `.sub` files** (optional). Use every `.sub` / `.sub.txt` the user
|
|
40
43
|
names, plus any in the source directory itself and in its transfer
|
|
41
44
|
subdirectories (`<slug>/<slug>.sub.txt` from an earlier run of this skill).
|
|
@@ -61,8 +64,8 @@ delete anything in the source directory**; every change happens in the copy.
|
|
|
61
64
|
(`figures/fig1.png` stays `figures/fig1.png`), so LaTeX `\input` and
|
|
62
65
|
`\includegraphics` paths still work:
|
|
63
66
|
- For a directory, copy its whole tree except: other transfer
|
|
64
|
-
subdirectories, `.sub`/`.sub.txt` files, `transfer.txt`,
|
|
65
|
-
paperpush-fix backups, and LaTeX build output (`.aux`, `.log`, `.out`,
|
|
67
|
+
subdirectories, `.sub`/`.sub.txt` files, `transfer.txt`, `venue_draft/`,
|
|
68
|
+
`.git/`, paperpush-fix backups, and LaTeX build output (`.aux`, `.log`, `.out`,
|
|
66
69
|
`.synctex.gz`, `.fls`, `.fdb_latexmk`, `.bbl`, `.blg`). If the tree is
|
|
67
70
|
over about 200 MB, list the largest items and ask before copying.
|
|
68
71
|
- For a set of files, copy just those, plus any file an earlier `.sub`
|
|
@@ -170,6 +173,9 @@ delete anything in the source directory**; every change happens in the copy.
|
|
|
170
173
|
New directory: <abs new dir>
|
|
171
174
|
New .sub: <abs path>
|
|
172
175
|
Earlier .sub files used: <abs path> (<venue>, modified <date>), ...
|
|
176
|
+
Draft venue entry: <abs new dir>/venue_draft (only for a venue paperpush
|
|
177
|
+
does not support; run paperpush on this .sub with
|
|
178
|
+
PAPERPUSH_VENUE_DATA=<abs new dir>/venue_draft/data)
|
|
173
179
|
|
|
174
180
|
1. Files
|
|
175
181
|
Copied: <n> files (<list, relative paths>)
|
|
@@ -209,10 +215,14 @@ delete anything in the source directory**; every change happens in the copy.
|
|
|
209
215
|
6. To do
|
|
210
216
|
<the author's remaining tasks, most important first>
|
|
211
217
|
paperpush submit <abs new .sub> (after: paperpush login <new venue>)
|
|
218
|
+
(or, when paperpush cannot submit to the new venue: upload the files
|
|
219
|
+
through <new venue>'s own portal, using the .sub as your checklist)
|
|
212
220
|
```
|
|
213
221
|
|
|
214
222
|
Build section 3 from `paperpush requirements <slug> --json` for both
|
|
215
|
-
venues, listing only the rules that differ.
|
|
223
|
+
venues, listing only the rules that differ. If the earlier venue was itself
|
|
224
|
+
a draft entry, read its rules with `PAPERPUSH_VENUE_DATA` set to that
|
|
225
|
+
transfer's `venue_draft/data`. Skip the section, with a line saying why,
|
|
216
226
|
when no earlier venue is known or it has no requirements entry. Shorten
|
|
217
227
|
long values (abstracts, statements) to their first 80 characters, with
|
|
218
228
|
`...`, instead of pasting them whole.
|
|
@@ -223,7 +233,38 @@ delete anything in the source directory**; every change happens in the copy.
|
|
|
223
233
|
limit, a different reference style); whether the manuscript was reformatted
|
|
224
234
|
and with which template (or the layout rules); the validation counts; and
|
|
225
235
|
what is left for them. For the portal, point them to `paperpush-submit` (or
|
|
226
|
-
`paperpush login <venue>` then `paperpush submit <abs .sub>`).
|
|
236
|
+
`paperpush login <venue>` then `paperpush submit <abs .sub>`). If
|
|
237
|
+
`paperpush venues` shows the new venue is validate-only, or it is a draft
|
|
238
|
+
entry, paperpush cannot submit to it: tell them to upload the files through
|
|
239
|
+
the venue's own portal, using the `.sub` as their checklist.
|
|
240
|
+
|
|
241
|
+
## Target venue paperpush does not support
|
|
242
|
+
|
|
243
|
+
A venue `paperpush venues` does not list can still be transferred to, but not
|
|
244
|
+
submitted to. Tell the user so up front, then:
|
|
245
|
+
|
|
246
|
+
- **After step 2 and before step 3**, run the `paperpush-add-venue-validate`
|
|
247
|
+
skill (Skill tool) for the venue in its **temporary mode**, and tell it to use
|
|
248
|
+
`<new-dir>/venue_draft/` as the draft directory, so the entry stays with the
|
|
249
|
+
transfer. On a re-run, if `<new-dir>/venue_draft/data` already exists, reuse
|
|
250
|
+
it unless the user asks to read the guidelines again.
|
|
251
|
+
- If the venue's guideline pages cannot be read, ask the user to save them as
|
|
252
|
+
files for that skill to read. If they have none, say that `paperpush format`
|
|
253
|
+
and the guideline checks will have little or nothing to work from, and ask
|
|
254
|
+
whether to go on.
|
|
255
|
+
- Set `PAPERPUSH_VENUE_DATA=<new-dir>/venue_draft/data` on every `paperpush`
|
|
256
|
+
command from step 3 on, and give that path to `paperpush-autofill`,
|
|
257
|
+
`paperpush-validate`, and `paperpush-fix` when you invoke them. Without the
|
|
258
|
+
variable, paperpush does not know the venue. Tell `paperpush-autofill` that
|
|
259
|
+
`venue_draft/` is not part of the manuscript, and tell `paperpush-validate`
|
|
260
|
+
the draft entry already exists so it does not build a second one.
|
|
261
|
+
- **Never run `paperpush login`, `paperpush submit`, or `paperpush-submit` for
|
|
262
|
+
it.** paperpush has no runner for this venue's portal.
|
|
263
|
+
- In the summary, say the rules came from a draft entry read from the
|
|
264
|
+
guidelines just now, so they are only as good as that reading. Pass on
|
|
265
|
+
`paperpush-validate`'s pointers for hot-fixing the draft (with the paths
|
|
266
|
+
under `<new-dir>/venue_draft/`) and the suggestion to send the entry upstream
|
|
267
|
+
as a pull request.
|
|
227
268
|
|
|
228
269
|
## Rules
|
|
229
270
|
|
|
@@ -234,6 +275,8 @@ delete anything in the source directory**; every change happens in the copy.
|
|
|
234
275
|
- An earlier `.sub` is a source, not the truth: the manuscript wins when they
|
|
235
276
|
disagree, and the change goes in `transfer.txt`.
|
|
236
277
|
- Never write a `never` field, even from an earlier `.sub`.
|
|
278
|
+
- A draft venue entry stays in `<new-dir>/venue_draft/`. It never goes into
|
|
279
|
+
paperpush's own databases or the repo.
|
|
237
280
|
- Never invent values: if neither the earlier `.sub` nor the files give it,
|
|
238
281
|
leave it for the author.
|
|
239
282
|
- Delegate filling to `paperpush-autofill`, reformatting to `paperpush format`,
|
|
@@ -35,8 +35,10 @@ from .validate import ERROR, WARNING, Issue, NotApplicable, Outcome
|
|
|
35
35
|
# ordinary words or people's names (Claude, Gemini, Mistral, Copilot) only count
|
|
36
36
|
# with a capital letter, and only beside a use (see _DISCLOSURE).
|
|
37
37
|
_TOOL = (
|
|
38
|
-
r"(?:\b(?i:chat\s?gpt|gpt-?(?:3(?:\.5)?|4(?:o|\.\d)?|4o-mini|5)|openai|
|
|
39
|
-
r"|\b(?:Claude|Gemini|Bard|Copilot|LLaMA|Llama(?:\s?\d)?|Mistral|Qwen|Grok)\b"
|
|
38
|
+
r"(?:\b(?i:chat\s?gpt|gpt-?(?:3(?:\.5)?|4(?:o|\.\d)?|4o-mini|5)|openai|deepseek|perplexity\.ai|grammarly|quillbot|deepl|writefull|paperpal|trinka|midjourney|dall[-·]?e(?:\s?\d)?|stable\s+diffusion|scispace)\b"
|
|
39
|
+
r"|\b(?:Claude|Gemini|Bard|Copilot|LLaMA|Llama(?:\s?\d)?|Mistral|Qwen|Grok|Elicit|Perplexity\s+AI)\b"
|
|
40
|
+
# "Anthropic" alone, not an adjective ("Anthropic disturbance").
|
|
41
|
+
r"|\bAnthropic\b(?!\s+[a-z])"
|
|
40
42
|
r"|\bLLMs?\b"
|
|
41
43
|
r"|\b(?i:large\s+language\s+models?|generative\s+(?:ai|artificial\s+intelligence)|gen-?ai|(?:ai|artificial\s+intelligence)[- ](?:assisted|based|powered|driven)\s+(?:tools?|technolog(?:y|ies)|writing|language|editing|software|assistan(?:ts?|ce))|(?:ai|artificial\s+intelligence)\s+(?:tools?|chat\s?bots?|assistants?|writing\s+(?:tools?|assistants?)|language\s+models?)|chat\s?bots?)\b)"
|
|
42
44
|
)
|
|
@@ -257,6 +257,10 @@ _REFERENCE_END = re.compile(
|
|
|
257
257
|
r"^\s*(?:[A-Z]\.?\s+)?(?:appendix|appendices|supplementary\s+material)\b[^\n]{0,60}$" r"|^\s*(?:\d+\.?\s+)?(?:author\s+contributions?|contributions|acknowledge?ments?|funding|competing\s+interests?|conflicts?\s+of\s+interest|data\s+availability|code\s+availability|declarations?|ethics(?:\s+statement)?|supplementary\s+information)\s*:?\s*$" r"|\\end\s*\{\s*thebibliography\s*\}|\\appendix\b|\\(?:sub)*section\*?\s*(?:\[[^\]]*\])?\s*\{",
|
|
258
258
|
re.IGNORECASE | re.MULTILINE,
|
|
259
259
|
)
|
|
260
|
+
# A lettered appendix heading ("A Implementation details"). The text may be case-folded, so
|
|
261
|
+
# a wrapped reference title fits this too; a reference has a year close by (_YEAR_NEARBY).
|
|
262
|
+
_LETTERED_APPENDIX = re.compile(r"^[ \t]*a\.?[ \t]+[a-z]+(?:[ \t]+[a-z][a-z-]+){0,7}[ \t]*$", re.IGNORECASE | re.MULTILINE)
|
|
263
|
+
_YEAR_NEARBY = re.compile(r"\b(?:19|20)\d{2}\b")
|
|
260
264
|
# "Copyright (c) 2026 Holder" -- the line Anonymous GitHub most often leaves
|
|
261
265
|
# un-redacted, in a LICENSE file.
|
|
262
266
|
_COPYRIGHT = re.compile(r"(?im)^\s*copyright\s+(?:\(c\)\s*|©\s*)?(?:\d{4}(?:\s*[-–,]\s*\d{4})*\s+)?(?P<holder>[^\n]{2,80})$")
|
|
@@ -289,6 +293,9 @@ def _reference_spans(text: str) -> list[tuple[int, int]]:
|
|
|
289
293
|
return spans
|
|
290
294
|
end = _REFERENCE_END.search(text, start.end())
|
|
291
295
|
stop = end.start() if end else len(text)
|
|
296
|
+
appendix = next((m for m in _LETTERED_APPENDIX.finditer(text, start.end(), stop) if not _YEAR_NEARBY.search(text, m.end(), m.end() + 160)), None)
|
|
297
|
+
if appendix is not None:
|
|
298
|
+
end, stop = appendix, appendix.start()
|
|
292
299
|
spans.append((start.start(), stop))
|
|
293
300
|
if end is None:
|
|
294
301
|
return spans
|
|
@@ -243,7 +243,7 @@ def _first_surname(entry: str) -> str:
|
|
|
243
243
|
|
|
244
244
|
|
|
245
245
|
def _text_bibliography(doc: document.Document, path: Path) -> Bibliography | None:
|
|
246
|
-
from .manuscript import
|
|
246
|
+
from .manuscript import author_year_starts
|
|
247
247
|
|
|
248
248
|
text = doc.text
|
|
249
249
|
if text is None:
|
|
@@ -272,7 +272,7 @@ def _text_bibliography(doc: document.Document, path: Path) -> Bibliography | Non
|
|
|
272
272
|
cited = {k.strip() for g in groups for k in re.split(r"[,;]", g) if k.strip() in known}
|
|
273
273
|
return Bibliography("labels", refs, cited)
|
|
274
274
|
|
|
275
|
-
starts =
|
|
275
|
+
starts = author_year_starts(tail)
|
|
276
276
|
if not starts:
|
|
277
277
|
return None
|
|
278
278
|
entries: list[str] = []
|
|
@@ -173,13 +173,12 @@ def mentions(text: str) -> list[Mention]:
|
|
|
173
173
|
|
|
174
174
|
def _reference_span(text: str, found: list[Mention]) -> tuple[int, int] | None:
|
|
175
175
|
"""Where the reference list runs: from its heading to the first caption after it."""
|
|
176
|
-
from .manuscript import
|
|
176
|
+
from .manuscript import reference_list_span
|
|
177
177
|
|
|
178
|
-
|
|
179
|
-
if not
|
|
178
|
+
span = reference_list_span(text)
|
|
179
|
+
if not span:
|
|
180
180
|
return None
|
|
181
|
-
|
|
182
|
-
return refs.start(), end
|
|
181
|
+
return span[0], next((x.pos for x in found if x.caption and span[0] < x.pos < span[1]), span[1])
|
|
183
182
|
|
|
184
183
|
|
|
185
184
|
# --- panels ---------------------------------------------------------------------------
|
|
@@ -194,7 +193,8 @@ _DASH = r"\s*[\u2013\u2014-]\s*"
|
|
|
194
193
|
_PANEL_ITEM = re.compile(rf"(S?)(\d{{1,3}})(?:([a-zA-Z])(?:{_DASH}(?:\1\2)?([a-zA-Z]))?)?(?![\w])")
|
|
195
194
|
# A bare letter (or range) continuing the previous item: the ", b" of "Fig. 2a, b".
|
|
196
195
|
_PANEL_LETTER = re.compile(rf"([a-zA-Z])(?:{_DASH}([a-zA-Z]))?(?![\w])")
|
|
197
|
-
_PANEL_SEP = re.compile(r"\s*(
|
|
196
|
+
_PANEL_SEP = re.compile(r"\s*(,\s*(?:and\b|&)|,|;|and\b|&)\s*")
|
|
197
|
+
_CELL_WORD = re.compile(r"\s+(?:cells?|lymphocytes?)\b", re.IGNORECASE)
|
|
198
198
|
# Whose figure: "Fig. 3b of ref. 12", "Fig. 2a in Smith et al.", "(ref. 4, Fig. 1c)".
|
|
199
199
|
_OTHER_AFTER = re.compile(r"\s*(?:of|in|from)\s+(?:refs?\b|\[|\(\d|\d|[A-Z][\w'-]+(?:\s+and\s+[A-Z][\w'-]+)?\s+(?:et\s+al|\(\d{4}|\d{4})|the\s+(?:original|cited|previous)|their\b|ours?\s+previous)")
|
|
200
200
|
_OTHER_BEFORE = re.compile(r"(?:\brefs?\.?\s*\d+[\w\s,\u2013-]*|et\s+al\.?(?:\s*\(?\d{4}\)?)?|\[\d+[\d,\s\u2013-]*\])\s*[,;:]?\s*(?:see\s+)?$", re.IGNORECASE)
|
|
@@ -244,9 +244,10 @@ def panel_mentions(text: str, series: str | None = None) -> list[PanelCite]:
|
|
|
244
244
|
found += [PanelCite(kind, current[1], c, item.start()) for c in _letters(item.group(3), item.group(4))]
|
|
245
245
|
pos = item.end()
|
|
246
246
|
elif current is not None and current[0] and lettered and (letter := _PANEL_LETTER.match(text, pos)):
|
|
247
|
-
# After "and", a bare letter must close the list ("Fig. 2a and b)")
|
|
248
|
-
# "Fig. 2a and a control" is not read as
|
|
249
|
-
|
|
247
|
+
# After "and", a bare letter must close the list ("Fig. 2a and b)") or be the
|
|
248
|
+
# next panel ("Fig. 2a and b show"), so "Fig. 2a and a control" is not read as one.
|
|
249
|
+
next_panel = found and ord(letter.group(1).lower()) == ord(found[-1].letter.lower()) + 1 and not _CELL_WORD.match(text, letter.end())
|
|
250
|
+
if sep.group(1).endswith(("and", "&")) and not next_panel and not re.match(r"\s*(?:[),;.\]]|$)", text[letter.end() :]):
|
|
250
251
|
break
|
|
251
252
|
# Panels run forward in one case: the "a" of "Fig. 2c, a rise" and the "B" of "Fig. 1b, B cells" are words.
|
|
252
253
|
if found and (letter.group(1).isupper() != found[-1].letter.isupper() or letter.group(1).lower() <= found[-1].letter.lower()):
|
|
@@ -1332,7 +1332,8 @@ checks that run without AI:
|
|
|
1332
1332
|
|
|
1333
1333
|
Figures
|
|
1334
1334
|
Resolution (dpi, with a line-art threshold), lettering size and typeface
|
|
1335
|
-
in vector figures, panel labels, color mode, maximum dimensions, placement
|
|
1335
|
+
in vector figures, panel labels, color mode, maximum dimensions, placement
|
|
1336
|
+
(of tables too),
|
|
1336
1337
|
legend length and location, and legibility with red-green color blindness.
|
|
1337
1338
|
Reads the attached figure files, or the figures embedded in the manuscript
|
|
1338
1339
|
when none are attached.
|
|
@@ -542,6 +542,10 @@ class Drawing:
|
|
|
542
542
|
return confusions(self.colours or [], raster=self.raster)
|
|
543
543
|
|
|
544
544
|
|
|
545
|
+
# How many pages of a figure PDF are read for colours.
|
|
546
|
+
_MAX_FIGURE_PAGES = 30
|
|
547
|
+
|
|
548
|
+
|
|
545
549
|
def pdf_figure_drawings(path: Path, name: str) -> list[Drawing]:
|
|
546
550
|
"""The colours of a figure file in PDF: its vector drawing, and each raster in it."""
|
|
547
551
|
from pypdf import PdfReader
|
|
@@ -549,17 +553,18 @@ def pdf_figure_drawings(path: Path, name: str) -> list[Drawing]:
|
|
|
549
553
|
reader = PdfReader(str(path))
|
|
550
554
|
if not reader.pages:
|
|
551
555
|
return []
|
|
552
|
-
page = reader.pages[0]
|
|
553
556
|
counts: dict[RGB, float] = {}
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
557
|
+
rasters: list[Drawing] = []
|
|
558
|
+
# Every page: a figure PDF can hold several figures.
|
|
559
|
+
for page in reader.pages[:_MAX_FIGURE_PAGES]:
|
|
560
|
+
contents = page.get_contents()
|
|
561
|
+
if contents is not None:
|
|
562
|
+
_stream_colours(contents, reader, counts)
|
|
563
|
+
for form in _forms(page):
|
|
564
|
+
_stream_colours(form, reader, counts)
|
|
565
|
+
for img in _page_images(page, 100):
|
|
566
|
+
rasters.append(Drawing(f"{name} (image {len(rasters) + 1})", image_colours(img), raster=True))
|
|
567
|
+
return ([Drawing(name, list(counts.items()))] if counts else []) + rasters
|
|
563
568
|
|
|
564
569
|
|
|
565
570
|
# A drawing narrower than this (points) on a manuscript page is a logo or an icon.
|
|
@@ -306,9 +306,15 @@ def _addressed(sentence: str, m: re.Match[str]) -> bool:
|
|
|
306
306
|
return True
|
|
307
307
|
|
|
308
308
|
|
|
309
|
-
def _mask(text: str, names: list[str]) -> str:
|
|
309
|
+
def _mask(text: str, names: list[str], keep: list[str] = ()) -> str:
|
|
310
|
+
"""``text`` with ``names`` blanked out, except where one is part of a longer name in ``keep``."""
|
|
311
|
+
kept = [m.span() for name in keep for m in _name_pattern(name).finditer(text)]
|
|
312
|
+
|
|
313
|
+
def blank(m: re.Match[str]) -> str:
|
|
314
|
+
return m.group(0) if any(a <= m.start() and m.end() <= b for a, b in kept) else "\u2591" * len(m.group(0))
|
|
315
|
+
|
|
310
316
|
for name in sorted(names, key=len, reverse=True):
|
|
311
|
-
text = _name_pattern(name).sub(
|
|
317
|
+
text = _name_pattern(name).sub(blank, text)
|
|
312
318
|
return text
|
|
313
319
|
|
|
314
320
|
|
|
@@ -322,12 +328,15 @@ def other_venue_mentions(text: str, venue: Venue, others: list[Venue]) -> list[t
|
|
|
322
328
|
if other.slug == venue.slug:
|
|
323
329
|
continue
|
|
324
330
|
for name in venue_names(other):
|
|
325
|
-
# A name inside this venue's own ("Nature" in "Nature Communications") is
|
|
326
|
-
|
|
331
|
+
# A name inside this venue's own ("Nature" in "Nature Communications") is
|
|
332
|
+
# blanked with it below, so what is left of it really is the other venue.
|
|
333
|
+
if len(name) < 3 or name.lower() in own_folded or name in candidates:
|
|
327
334
|
continue
|
|
328
335
|
candidates.append(name)
|
|
329
336
|
candidates.sort(key=len, reverse=True)
|
|
330
|
-
|
|
337
|
+
# "Nature Communications" in a letter to Nature is another journal, not Nature.
|
|
338
|
+
longer = [name for name in candidates if any(o in name.lower() for o in own_folded)]
|
|
339
|
+
masked = _mask(document.normalize(text), own, longer)
|
|
331
340
|
found: list[tuple[str, str]] = []
|
|
332
341
|
seen: set[str] = set()
|
|
333
342
|
for sentence in _SENTENCE.findall(masked):
|
|
@@ -352,8 +361,13 @@ def other_venue_mentions(text: str, venue: Venue, others: list[Venue]) -> list[t
|
|
|
352
361
|
|
|
353
362
|
def names_venue(text: str, venue: Venue) -> bool:
|
|
354
363
|
"""Whether ``text`` names ``venue`` anywhere."""
|
|
355
|
-
|
|
356
|
-
|
|
364
|
+
from .database import list_venues
|
|
365
|
+
|
|
366
|
+
own = venue_names(venue)
|
|
367
|
+
folded = [n.lower() for n in own]
|
|
368
|
+
longer = [name for other in list_venues() if other.slug != venue.slug for name in venue_names(other) if name.lower() not in folded and any(o in name.lower() for o in folded)]
|
|
369
|
+
masked = _mask(document.normalize(text), own, longer)
|
|
370
|
+
return "\u2591" in masked
|
|
357
371
|
|
|
358
372
|
|
|
359
373
|
def _venue_check(checks: Checks, venue: Venue, values: dict[str, str]) -> Outcome:
|
|
@@ -175,7 +175,7 @@ def _pdf_figure(path: Path, field_id: str, rules: FigureRules, number: int) -> F
|
|
|
175
175
|
from . import pdf_layout
|
|
176
176
|
|
|
177
177
|
fig = Figure(path.name, path, field_id, True, "vector", number=number)
|
|
178
|
-
pages = pdf_layout.read_pages(path
|
|
178
|
+
pages = pdf_layout.read_pages(path) if pdf_layout.available() else None
|
|
179
179
|
if not pages:
|
|
180
180
|
fig.kind = "other"
|
|
181
181
|
return fig
|
|
@@ -185,8 +185,9 @@ def _pdf_figure(path: Path, field_id: str, rules: FigureRules, number: int) -> F
|
|
|
185
185
|
scale = min(1.0, (max_mm / MM_PER_INCH * 72) / width_pt) if max_mm else 1.0
|
|
186
186
|
fig.print_width_mm = width_pt * scale / 72 * MM_PER_INCH
|
|
187
187
|
fig.file_width_mm, fig.file_height_mm = width_pt / 72 * MM_PER_INCH, page.height / 72 * MM_PER_INCH
|
|
188
|
-
|
|
189
|
-
|
|
188
|
+
# Every page: a figure PDF can hold several figures.
|
|
189
|
+
fig.texts = [text for p in pages for text in _texts_from_glyphs(p.glyphs, scale)]
|
|
190
|
+
images = [im for p in pages for im in p.images if im.dpi]
|
|
190
191
|
if images and not fig.texts:
|
|
191
192
|
# A raster image wrapped in a PDF: its resolution is the image's, as scaled.
|
|
192
193
|
largest = max(images, key=lambda im: (im.x1 - im.x0) * (im.y1 - im.y0))
|
|
@@ -221,7 +222,9 @@ def _svg_length(value: str | None, em: float | None = None) -> float | None:
|
|
|
221
222
|
def _css_declarations(text: str) -> dict[str, str]:
|
|
222
223
|
"""``{property: value}`` of a CSS declaration list, the ``font`` shorthand expanded."""
|
|
223
224
|
out = {k.strip().lower(): v.strip() for k, v in (item.split(":", 1) for item in text.split(";") if ":" in item)}
|
|
224
|
-
|
|
225
|
+
# A size with a unit first: the "700" of Matplotlib's "font: 700 10px 'DejaVu Sans'" is the weight.
|
|
226
|
+
font = out.get("font", "")
|
|
227
|
+
shorthand = re.search(r"(?:^|\s)(\d*\.?\d+(?:px|pt|mm|cm|in|pc|rem|em|ex|%))(?:/\S+)?\s+(.+)$", font) or re.search(r"(?:^|\s)(\d*\.?\d+)(?:/\S+)?\s+(.+)$", font)
|
|
225
228
|
if shorthand:
|
|
226
229
|
out.setdefault("font-size", shorthand.group(1))
|
|
227
230
|
out.setdefault("font-family", shorthand.group(2))
|
|
@@ -289,7 +289,8 @@ def measure_pdf(pages) -> PdfLayout | None:
|
|
|
289
289
|
has_page_number = False
|
|
290
290
|
segmented = {y: _segments(glyphs, 2.5 * body) for y, glyphs in rows.items()}
|
|
291
291
|
seg_text = lambda seg: "".join(g.text for g in seg).strip() # noqa: E731
|
|
292
|
-
|
|
292
|
+
# LaTeX sets its smaller line numbers a point off the text's baseline, so each is a row of its own.
|
|
293
|
+
edge_digits = [seg for segs in segmented.values() for seg in {id(s): s for s in (segs[0], segs[-1])}.values() if seg_text(seg).isdigit() and len(seg_text(seg)) <= 4]
|
|
293
294
|
# Line numbers form a column; a page number in a running head stands alone.
|
|
294
295
|
in_column = lambda seg: sum(abs(o[-1].x1 - seg[-1].x1) < 2 or abs(o[0].x0 - seg[0].x0) < 2 for o in edge_digits) >= 3 # noqa: E731
|
|
295
296
|
ys = sorted(segmented)
|
|
@@ -310,7 +311,8 @@ def measure_pdf(pages) -> PdfLayout | None:
|
|
|
310
311
|
if not kept:
|
|
311
312
|
continue
|
|
312
313
|
row_text = " ".join("".join(g.text for g in seg) for seg in kept).strip()
|
|
313
|
-
|
|
314
|
+
# A digits-only row in the line-number column is a line number, even near the page's edge.
|
|
315
|
+
if running and _PAGE_NUMBER.match(re.sub(r"\s+", " ", row_text)) and not (len(kept) == 1 and row_text.isdigit() and in_column(kept[0])):
|
|
314
316
|
has_page_number = True
|
|
315
317
|
continue
|
|
316
318
|
if len(kept) == 1 and row_text.isdigit() and len(row_text) <= 4:
|
|
@@ -129,6 +129,25 @@ def truncate_at_references(text: str, headings: tuple[str, ...] = ()) -> str:
|
|
|
129
129
|
return text[: match.start()] if match else text
|
|
130
130
|
|
|
131
131
|
|
|
132
|
+
def reference_list_span(text: str) -> tuple[int, int] | None:
|
|
133
|
+
"""Where the reference list runs in extracted text: its heading to whatever follows it, or None."""
|
|
134
|
+
heading = _REFERENCE_HEADING.search(text)
|
|
135
|
+
if heading is None:
|
|
136
|
+
return None
|
|
137
|
+
after = _AFTER_REFERENCES.search(text, heading.end())
|
|
138
|
+
return heading.start(), after.start() if after else len(text)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
def without_reference_list(text: str) -> str:
|
|
142
|
+
"""``text`` with its reference list cut out; the back matter after it stays.
|
|
143
|
+
|
|
144
|
+
For the checks that read everything the authors wrote: a code-availability
|
|
145
|
+
statement or a trial number can come after the references.
|
|
146
|
+
"""
|
|
147
|
+
span = reference_list_span(text)
|
|
148
|
+
return text if span is None else text[: span[0]] + "\n" + text[span[1] :]
|
|
149
|
+
|
|
150
|
+
|
|
132
151
|
def _word_count(text: str) -> int:
|
|
133
152
|
return len(text.split())
|
|
134
153
|
|
|
@@ -496,7 +515,8 @@ def _strip_line_numbers(page: str) -> str:
|
|
|
496
515
|
if tail is None:
|
|
497
516
|
continue
|
|
498
517
|
digits = tail.group(1)
|
|
499
|
-
|
|
518
|
+
# Longest reading first: "212" and its suffix "12" climb alike, and a tie keeps the first.
|
|
519
|
+
for value in dict.fromkeys(int(digits[k:]) for k in range(len(digits))):
|
|
500
520
|
for step, needed in ((1, max(8, written // 2)), (5, max(4, written // 10))):
|
|
501
521
|
chain = _line_number_chain(tails, start, value, step)
|
|
502
522
|
indices = sorted(chain)
|
|
@@ -1109,6 +1129,9 @@ def _run_in_heading(line: str) -> tuple[str, int] | None:
|
|
|
1109
1129
|
match = _RUN_IN_BREAK.match(body)
|
|
1110
1130
|
if match is None or len(match.group(1).split()) > _HEADING_MAX_WORDS:
|
|
1111
1131
|
return None
|
|
1132
|
+
# A label is capitalized; "results. We..." is a sentence wrapped at that word.
|
|
1133
|
+
if not next((c.isupper() for c in match.group(1) if c.isalpha()), False):
|
|
1134
|
+
return None
|
|
1112
1135
|
return match.group(1), len(line) - len(body) + match.end()
|
|
1113
1136
|
|
|
1114
1137
|
|
|
@@ -1264,12 +1287,19 @@ def _text_section_marks(text: str, wordings: dict[str, str]) -> list[tuple[int,
|
|
|
1264
1287
|
return marks
|
|
1265
1288
|
|
|
1266
1289
|
|
|
1267
|
-
|
|
1290
|
+
# An abstract is at most a few hundred words; a longer run of "labels" is the paper itself.
|
|
1291
|
+
_MAX_STRUCTURED_ABSTRACT_CHARS = 5000
|
|
1292
|
+
|
|
1293
|
+
|
|
1294
|
+
def structured_abstract_labels(names: list[str | None], starts: list[int] | None = None) -> set[int]:
|
|
1268
1295
|
"""Which of ``names`` (canonical headings in order, None for other lines) are a structured abstract's labels.
|
|
1269
1296
|
|
|
1270
1297
|
A structured abstract repeats the body's headings ("Background", "Results"),
|
|
1271
1298
|
and its labels come straight after the Abstract heading. They run until the
|
|
1272
|
-
first section seen a second time, which starts the body.
|
|
1299
|
+
first section seen a second time, which starts the body. There are at least
|
|
1300
|
+
two of them, and with ``starts`` (each heading's offset) they span no more
|
|
1301
|
+
than an abstract can: a supplement repeating "Methods" does not make the
|
|
1302
|
+
paper before it an abstract.
|
|
1273
1303
|
"""
|
|
1274
1304
|
start = next((i for i, name in enumerate(names) if name == "Abstract"), None)
|
|
1275
1305
|
if start is None or not any(names[start + 1 : start + 3]):
|
|
@@ -1281,7 +1311,8 @@ def structured_abstract_labels(names: list[str | None]) -> set[int]:
|
|
|
1281
1311
|
if not name:
|
|
1282
1312
|
continue
|
|
1283
1313
|
if name in seen:
|
|
1284
|
-
|
|
1314
|
+
too_long = starts is not None and starts[index] - starts[start] > _MAX_STRUCTURED_ABSTRACT_CHARS
|
|
1315
|
+
return labels if len(labels) >= 2 and not too_long else set()
|
|
1285
1316
|
seen.add(name)
|
|
1286
1317
|
labels.add(index)
|
|
1287
1318
|
return set()
|
|
@@ -1297,6 +1328,7 @@ _TEX_ENV_ABSTRACT = re.compile(r"\\begin\s*\{\s*abstract\s*\}.*?\\end\s*\{\s*abs
|
|
|
1297
1328
|
_TEX_ENV_TABLE = re.compile(r"\\begin\s*\{\s*table\*?\s*\}.*?\\end\s*\{\s*table\*?\s*\}", re.DOTALL)
|
|
1298
1329
|
_TEX_CAPTION = re.compile(r"\\caption\*?\s*(?:\[[^\]]*\])?\s*\{")
|
|
1299
1330
|
_TEX_ABSTRACT_MACRO = re.compile(r"\\abstract\s*\{")
|
|
1331
|
+
_TEX_ENV_BIBLIOGRAPHY = re.compile(r"\\begin\s*\{\s*thebibliography\s*\}.*?\\end\s*\{\s*thebibliography\s*\}", re.DOTALL)
|
|
1300
1332
|
|
|
1301
1333
|
|
|
1302
1334
|
def _tex_group_end(source: str, opening: int) -> int:
|
|
@@ -1315,7 +1347,7 @@ def _tex_group_end(source: str, opening: int) -> int:
|
|
|
1315
1347
|
|
|
1316
1348
|
def _section_spans(marks: list[tuple[int, int, str]], limit: int) -> dict[str, list[tuple[int, int]]]:
|
|
1317
1349
|
"""The ``(start, end)`` of each known section, by canonical name; an abstract keeps its labels."""
|
|
1318
|
-
labels = structured_abstract_labels([name for _, _, name in marks])
|
|
1350
|
+
labels = structured_abstract_labels([name for _, _, name in marks], [start for start, _, _ in marks])
|
|
1319
1351
|
spans: dict[str, list[tuple[int, int]]] = {}
|
|
1320
1352
|
for index, (start, _, name) in enumerate(marks):
|
|
1321
1353
|
if index in labels:
|
|
@@ -1393,6 +1425,11 @@ def words_excluding(path: Path, wordings: dict[str, str], parts: dict[str, str],
|
|
|
1393
1425
|
elif kind == "@references":
|
|
1394
1426
|
if not has_references:
|
|
1395
1427
|
missing.append(part)
|
|
1428
|
+
elif whole and is_tex:
|
|
1429
|
+
# A whole-document count runs past the bibliography, so it has to be cut out.
|
|
1430
|
+
spans += [m.span() for m in _TEX_ENV_BIBLIOGRAPHY.finditer(source)]
|
|
1431
|
+
elif whole:
|
|
1432
|
+
spans.append(reference_list_span(source))
|
|
1396
1433
|
elif kind == "@front":
|
|
1397
1434
|
if marks or abstract:
|
|
1398
1435
|
spans.append((0, min([marks[0][0]] * bool(marks) + [a for a, _ in abstract])))
|
|
@@ -1479,6 +1516,38 @@ def _cited_bib_entries(main_tex: Path, source: str) -> list[str] | None:
|
|
|
1479
1516
|
return used or None
|
|
1480
1517
|
|
|
1481
1518
|
|
|
1519
|
+
# A wrapped line opening with a journal and its volume ("Nature 12, 1-9"), not an entry.
|
|
1520
|
+
_JOURNAL_VOLUME_LINE = re.compile(r"[A-Z][\w.&]*(?:[ \t]+[A-Z][\w.&]*){0,4}[ \t]+\d{1,4}[ \t]*[,:(;]")
|
|
1521
|
+
_ENTRY_YEAR = re.compile(r"\b(?:19|20)\d{2}[a-z]?\b")
|
|
1522
|
+
_ENTRY_CLOSED = re.compile(r"(?:[.)\]]|\d|https?://\S+|doi\S*)\s*$", re.IGNORECASE)
|
|
1523
|
+
|
|
1524
|
+
|
|
1525
|
+
def author_year_starts(tail: str) -> list[int]:
|
|
1526
|
+
"""Where each entry of an author-year reference list starts in ``tail``; [] when none has a year.
|
|
1527
|
+
|
|
1528
|
+
Extraction wraps entries over lines, and the year can be on any of them, so
|
|
1529
|
+
an entry ends only once it holds a year and a line closes it. A line then
|
|
1530
|
+
starts the next entry if it opens with a capital and is not a journal and
|
|
1531
|
+
volume. A piece with no year of its own goes back to the entry before.
|
|
1532
|
+
"""
|
|
1533
|
+
starts: list[int] = []
|
|
1534
|
+
offset = 0
|
|
1535
|
+
has_year = closed = False
|
|
1536
|
+
for line in tail.splitlines(keepends=True):
|
|
1537
|
+
stripped = line.strip()
|
|
1538
|
+
if stripped:
|
|
1539
|
+
upper = stripped[0].isupper() and not _JOURNAL_VOLUME_LINE.match(stripped)
|
|
1540
|
+
if upper and (not starts or (has_year and (closed or _AUTHOR_YEAR_REF.match(stripped)))):
|
|
1541
|
+
starts.append(offset + len(line) - len(line.lstrip()))
|
|
1542
|
+
has_year = False
|
|
1543
|
+
has_year = has_year or bool(_ENTRY_YEAR.search(stripped))
|
|
1544
|
+
closed = bool(_ENTRY_CLOSED.search(stripped))
|
|
1545
|
+
offset += len(line)
|
|
1546
|
+
bounds = starts + [len(tail)]
|
|
1547
|
+
kept = [a for i, (a, b) in enumerate(zip(bounds, bounds[1:])) if i == 0 or _ENTRY_YEAR.search(tail[a:b])]
|
|
1548
|
+
return kept if _ENTRY_YEAR.search(tail) else []
|
|
1549
|
+
|
|
1550
|
+
|
|
1482
1551
|
def _numbered_starts(tail: str) -> list[re.Match[str]]:
|
|
1483
1552
|
"""The numbered-entry matches of a reference list, or [] when it is not a numbered list.
|
|
1484
1553
|
|
|
@@ -1525,12 +1594,12 @@ def reference_count(path: Path) -> int | None:
|
|
|
1525
1594
|
# entry can hide its number from the line-anchored pattern.
|
|
1526
1595
|
highest = max(int(m.group(1) or m.group(2)) for m in numbered)
|
|
1527
1596
|
return max(highest, len(numbered)) if highest <= len(numbered) * 3 else len(numbered)
|
|
1528
|
-
return len(
|
|
1597
|
+
return len(author_year_starts(tail)) or None
|
|
1529
1598
|
|
|
1530
1599
|
|
|
1531
1600
|
# Where a reference list ends in extracted text: a figure/table caption or a
|
|
1532
1601
|
# heading that commonly follows it.
|
|
1533
|
-
_AFTER_REFERENCES = re.compile(r"^\s*" + _MD_HEADING_OPEN + r"(?:(?:Supplementary\s+|Extended\s+Data\s+)?(?:Fig(?:ure)?\.?|Table)\s+S?\d+\s*[.:|]|Figure\s+legends?\b|Tables?\s*$|Supplementary\s+(?:information|materials?)\b|Appendix\b|Methods\s*$)", re.IGNORECASE | re.MULTILINE)
|
|
1602
|
+
_AFTER_REFERENCES = re.compile(r"^\s*" + _MD_HEADING_OPEN + r"(?:(?:Supplementary\s+|Extended\s+Data\s+)?(?:Fig(?:ure)?\.?|Table)\s+S?\d+\s*[.:|]|Figure\s+legends?\b|Tables?\s*$|Supplementary\s+(?:information|materials?)\b|Appendix\b|(?:Online\s+|Materials\s+and\s+)?Methods\s*$|(?:(?:Data|Code|Software|Materials?)(?:(?:\s*,\s*|\s+and\s+)\w+)*\s+availability|Acknowledge?ments?|Author\s+contributions?|Funding|Competing\s+interests?|Conflicts?\s+of\s+interest|(?:Clinical\s+)?Trial\s+registration)\b\s*(?:\*\*|__)?\s*(?:[:.](?:\s|$)|$)|(?:Ethics(?:\s+statement)?|Declarations?|Additional\s+information)\s*$)", re.IGNORECASE | re.MULTILINE)
|
|
1534
1603
|
_BIB_ITEM = re.compile(r"\\bibitem\s*(?:\[[^\]]*\])?\s*\{[^}]*\}(.*?)(?=\\bibitem|\\end\s*\{\s*thebibliography|$)", re.DOTALL)
|
|
1535
1604
|
|
|
1536
1605
|
|
|
@@ -1565,7 +1634,7 @@ def reference_entries(path: Path) -> list[str] | None:
|
|
|
1565
1634
|
end = _AFTER_REFERENCES.search(tail)
|
|
1566
1635
|
if end:
|
|
1567
1636
|
tail = tail[: end.start()]
|
|
1568
|
-
starts = [m.start() for m in _numbered_starts(tail)] or
|
|
1637
|
+
starts = [m.start() for m in _numbered_starts(tail)] or author_year_starts(tail)
|
|
1569
1638
|
if not starts:
|
|
1570
1639
|
return None
|
|
1571
1640
|
bounds = starts + [len(tail)]
|