Skip to content

Commit

Permalink
send
Browse files Browse the repository at this point in the history
  • Loading branch information
glorieux-f committed Apr 10, 2024
1 parent cf91a58 commit d8d36c9
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 1 deletion.
8 changes: 8 additions & 0 deletions docx/docx_teilike.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -585,15 +585,23 @@ Seen
</xsl:variable>
<xsl:variable name="xml10">
<xsl:choose>
<!-- allow unknown styles
<xsl:when test="$style_name = '' or string($teinte_c/@element) = ''">
<xsl:copy-of select="$xml5"/>
</xsl:when>
-->
<!-- redundant -->
<xsl:when test="ancestor::w:hyperlink">
<xsl:copy-of select="$xml5"/>
</xsl:when>
<xsl:when test="$teinte_c/@element != ''">
<xsl:element name="{$teinte_c/@element}">
<!-- bad for reconnect -->
<xsl:if test="$teinte_c/@attribute">
<xsl:attribute name="{$teinte_c/@attribute}">
<xsl:value-of select="$teinte_c/@value"/>
</xsl:attribute>
</xsl:if>
<xsl:copy-of select="$xml5"/>
</xsl:element>
</xsl:when>
Expand Down
3 changes: 3 additions & 0 deletions docx/styles.xml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ LGPL http://www.gnu.org/licenses/lgpl.html
<style level="c" name="accentuationforte" element="b"/>
<style level="c" name="actor" element="actor" doc="true"/>
<style level="c" name="author" element="author" doc="true"/>
<style level="c" name="autregrc" element="foreign" attribute="xml:lang" value="grc"/>
<style level="c" name="affiliation" element="affiliation" doc="true"/>
<style level="c" name="age" element="age" doc="true"/>
<style level="c" name="appelnotedebasdep"/><!-- Delete -->
Expand Down Expand Up @@ -296,6 +297,8 @@ LGPL http://www.gnu.org/licenses/lgpl.html
<style level="c" name="milestone" element="milestone" doc="true"/>
<style level="c" name="name" element="name" doc="true"/>
<style level="c" name="num" element="num" doc="true"/>
<style level="c" name="orth" element="orth" doc="true"/>
<style level="c" name="orthital" element="orth" attribute="rend" value="i"/>
<style level="c" name="pagenumber" element="num"/>
<style level="c" name="pagination" element="pb"/>
<style level="c" name="pagenum" element="pb"/>
Expand Down
2 changes: 1 addition & 1 deletion docx/teilike_pcre.tsv
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
search replace ?comment
# Variables

($inline) (author|b|bg_\w+|emph|foreign|em|hi|i|id|phr|ref|sc|seg|strong|sup|tech|th|title|u)
($inline) (author|b|bg_\w+|emph|foreign|em|hi|i|id|orth|phr|ref|sc|seg|strong|sup|tech|th|title|u)
($atts) ( [^>]*)?
($pun) ([,;:\.!?—–  \s]+) keep () or [] in inlines
($block) (head|note|p)
Expand Down

0 comments on commit d8d36c9

Please sign in to comment.