Hacktoberfest 2026: los issues que los mantenedores marcaron para octubre, abiertos y aptos para principiantes. Explorar issues de Hacktoberfest

Headings at the start of chapters do not get relocated

Abierto
#524 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
45/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Activo
Stack tecnológico
csharp
Área
backend

Línea de trabajo

Start with VerseRef.ChangeVersification and trace how headings such as MAL 4:0/1:s1 are represented and converted. Then inspect UpdateUsfmParserHandler and the Serval pretranslation flow, using the Malachi example as the reproduction case. Done means headings at the start of a chapter remain in the generated USFM after versification changes.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

I'm not sure this can be fixed.

Given the book Malachi with a source with the English Versification, and a target with the Septuagint Versification, most references will be converted correctly, e.g. MAL 4:1 -> MAL 3:19, and Serval will use these in the Pretranslations stored in Mongo. i.e.:

{
  "textId": "MAL",
  "sourceRefs": ["MAL 4:1"],
  "targetRefs": ["MAL 3:19"],
  "refs": ["MAL 3:19"],
  "translation": "“For behold, the day is coming, burning like a furnace, when all the arrogant and every evildoer will be stubble; the day is coming when I will set them ablaze,” says the LORD of Hosts. “Not a root or branch will be left to them.”",
}

However, if there were headings at the start of chapter 4, VerseRef.ChangeVersification will not convert the source reference to a suitable target reference:

{
  "textId": "MAL",
  "sourceRefs": ["MAL 4:0/1:s1"],
  "targetRefs": ["MAL 4:0/1:s1"],
  "refs": ["MAL 4:0/1:s1"],
  "translation": "The Day of the LORD",
}

Which means that the final USFM outputted by Serval using the UpdateUsfmParserHandler will lose the headings, i.e.:

\v 18 So you will again distinguish between the righteous and the wicked, between those who serve God and those who do not.”
\s1 
\r 
\m
\v 19 “For behold, the day is coming, burning like a furnace, when all the arrogant and every evildoer will be stubble; the day is coming when I will set them ablaze,” says the LORD of Hosts. “Not a root or branch will be left to them.” 

I'm not sure what we can do? Check if the next verse is being relocated, and move any headings to the verse before that one???

Lenguaje dominante
C#
Estrellas
29
Forks
17
Merge medio
5 d 13 h
PR fusionados (30 d)
10

Preparar el entorno

Aún no hemos revisado los archivos de configuración de este proyecto. Empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de sillsdev/machine

Todos los issues de sillsdev/machine

Issues similares

Más issues de C#

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.