Skip to content

AsciiDoc Unit Skeleton Generation #16

@AuraMindNest

Description

@AuraMindNest

Problem

Parse each source .adoc file through Weblate's own AsciiDoc parser to produce skeleton unit files that match exactly how Weblate would segment the content. Each skeleton unit contains the source text, an ID hash, location metadata, and an empty target — ready for translation injection in the next step.

Acceptance Criteria

  • Skeleton translation files are produced
  • Each unit in the skeleton contains: source (original text), id_hash (deterministic hash matching Weblate's algorithm), location (file path + line range), note (context hint), flags (e.g., no-wrap for preformatted blocks), and target
  • The skeleton format matches Weblate's internal storage format
  • Output skeletons are stored in a structured directory mirroring the component layout

References

  • Related files: Source .adoc component files
  • Upstream: Weblate's AsciiDoc format handler, translate-toolkit's unit hashing logic

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions