summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Little <chrislit@crosswire.org>2012-02-25 23:30:56 +0000
committerChris Little <chrislit@crosswire.org>2012-02-25 23:30:56 +0000
commite223763329865615af6d117ab550e6899848311e (patch)
tree466502ca2374be2ec6c756c6d1d17098bccaaf6c
parent32130c695b3d9d7103dcee69c850993ec171a5f1 (diff)
downloadsword-tools-e223763329865615af6d117ab550e6899848311e.tar.gz
made \b generate a linebreak element <lb/>
removed notes that \b and \m are unsupported commented out a line of special-purpose non-USFM code git-svn-id: https://www.crosswire.org/svn/sword-tools/trunk@351 07627401-56e2-0310-80f4-f8cd0041bdcd
-rw-r--r--modules/perlconverters/usfm2osis.pl8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/perlconverters/usfm2osis.pl b/modules/perlconverters/usfm2osis.pl
index 9aba683..2ea7a4c 100644
--- a/modules/perlconverters/usfm2osis.pl
+++ b/modules/perlconverters/usfm2osis.pl
@@ -617,10 +617,10 @@ foreach $file (@files) {
$line =~ s/\\vp\b\s*(\d+[a-z]?|[a-z])\s*/<seg type="verseNumber">$1<\/seg>/g;
### Paragraphs--Markers Supported: \p, \b, \m, \nb, \cls
- #### Markers Not Yet Supported: \m, \pmo, \pm, \pmc, \pmr, \pi#, \mi, \li#, \pc, \pr, \ph#, \b
+ #### Markers Not Yet Supported: \pmo, \pm, \pmc, \pmr, \pi#, \mi, \li#, \pc, \pr, \ph#
# Hack to solve an issue in a module that used <R> for linebreaks in the usfm files--may be commented out (not USFM 2.1)
- $line =~ s/\\lb\*/<lb \/>/g;
+ # $line =~ s/\\lb\*/<lb \/>/g;
# \p paragraph (From Chapters and Verses)
if ($line =~ /^\\p\b\s*/) {
@@ -662,14 +662,14 @@ foreach $file (@files) {
}
# \b
- $line =~ s/\\b\b//;
+ $line =~ s/\\b\b/<lb\/>/;
# \m
$line =~ s/\\m\b//;
# \nb
$line =~ s/\\nb\b//;
### Poetry--Markers Supported: \q#, \qs...\qs*, \qr, \qc, \qac...\qac*, \qa, \qm#
- #### Markers Not Yet Supported: \b
+ #### Markers Not Yet Supported: [none]
# \qt...\qt*, OT quotation (handle early)
$line =~ s/\\qt\b\s*(.*?)\\qt\*/<seg type="otPassage">$1<\/seg>/g;