Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(phi0474.phi021.perseus-lat1.xml) EpiDoc and CTS conversion #384

Merged
merged 5 commits into from Jan 28, 2021

Conversation

PonteIneptique
Copy link
Member

And another one because I was afraid one was not enough :D

Regex : Revision (\d\.\d+)  ([\d+\-\/ \:]+)\s+(\w+)\n([^\n]+)\n+
Replacement: <change when="\2" who="\3">\4</change>\n
    Regex 1 : `<milestone\s+n="(\d+)"\s+unit="section"\s*/>\s*</p>`
    Repla 1 : `</p>\n\t<milestone n="\1" unit="section"/>`

    Regex 2 : `<milestone\s+n="(\d+)"\s+unit="chapter"\s*/>\s*</p>\s*<milestone\s+n="(\d+)"\s+unit="section"\s*/>`
    Repla 2 : `</p>\n\t<milestone n="\2" unit="section"/><milestone n="\1" unit="chapter"/>`

    Regex 3 : `<p>`
    Repla 3 : `<p rend="indent">`

    Regex 4 : `<milestone\s+n="(\d+)"\s+unit="chapter"\s*/>\s*<milestone\s+n="(\d+)"\s+unit="section"\s*/>`
    Repla 4 : `<milestone n="\2" unit="section"/><milestone n="\1" unit="chapter"/>`
Regex: `<milestone\s*n="(\d+)"\s*unit="section"\s*/>`
Repla: `\n\t\t</p>\n\t</div>\n\t<div n="\1" type="textpart" subtype="section">\n\t\t<p>`
@ghost
Copy link

ghost commented Jan 20, 2021

Global

Changed Status
coverage 0.09
nodes_count 63
texts_passing 1

Words

Changed Status
lat +7588

Units

Changed Status
./data/phi0474/phi021/phi0474.phi021.perseus-lat1.xml Passing

Hook UI build recap

@lcerrato lcerrato changed the title 0474.021 (phi0474.phi021.perseus-lat1.xml) EpiDoc and CTS conversion Jan 20, 2021
@lcerrato
Copy link
Contributor

FYI I change the names of these issues as there is only one specific file being converted. Using phi0474.phi021 implies the whole batch is being converted, but it is not.

@PonteIneptique
Copy link
Member Author

My bad @lcerrato ! I'll do that for the next one !

@ghost
Copy link

ghost commented Jan 27, 2021

Global

Changed Status
coverage 0.09
nodes_count 63
texts_passing 1

Words

Changed Status
lat +7586

Units

Changed Status
./data/phi0474/phi021/phi0474.phi021.perseus-lat1.xml Deleted
./data/phi0474/phi021/phi0474.phi021.perseus-lat2.xml New
./data/phi0474/phi021/phi0474.phi021.perseus-lat2.xml Passing

Hook UI build recap

@mkonieczny9805 mkonieczny9805 merged commit c5d7037 into master Jan 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants