From 02393c1606af380af9ae167f19becb54a216cc96 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Mon, 28 Jan 2013 21:51:01 -0500
Subject: v4 (v3): version & changelog
---
data/doc/sisu/CHANGELOG_v3 | 10 ++++++----
data/doc/sisu/CHANGELOG_v4 | 11 +++++++----
data/sisu/v3/v/version.yml | 6 +++---
data/sisu/v4/v/version.yml | 6 +++---
4 files changed, 19 insertions(+), 14 deletions(-)
diff --git a/data/doc/sisu/CHANGELOG_v3 b/data/doc/sisu/CHANGELOG_v3
index eb13e699..da68e7c4 100644
--- a/data/doc/sisu/CHANGELOG_v3
+++ b/data/doc/sisu/CHANGELOG_v3
@@ -29,12 +29,17 @@ v1 branch is removed; it is available in sisu =< 2.7
%% Reverse Chronological:
+%% 3.3.7.orig.tar.xz (2013-01-28:04/1)
+http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_3.3.7
+http://www.jus.uio.no/sisu/pkg/src/sisu_3.3.7.orig.tar.xz
+ sisu_3.3.7.orig.tar.xz
+ sisu_3.3.7-1.dsc
+
%% 3.3.6.orig.tar.xz (2013-01-27:03/7)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_3.3.6
http://www.jus.uio.no/sisu/pkg/src/sisu_3.3.6.orig.tar.xz
sisu_3.3.6.orig.tar.xz
sisu_3.3.6-1.dsc
- sisu_3.3.6-1.debian.tar.gz
* v3: epub some fixing, more documents render in more readers/viewers
* ncx fix, navpoint_close
@@ -50,7 +55,6 @@ http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_3
http://www.jus.uio.no/sisu/pkg/src/sisu_3.3.5.orig.tar.xz
sisu_3.3.5.orig.tar.xz
sisu_3.3.5-1.dsc
- sisu_3.3.5-1.debian.tar.gz
* v3: epub
* remove unnecessary conversion of some utf-8 characters to xhtml
@@ -76,7 +80,6 @@ http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_3
http://www.jus.uio.no/sisu/pkg/src/sisu_3.3.4.orig.tar.xz
sisu_3.3.4.orig.tar.xz
sisu_3.3.4-1.dsc
- sisu_3.3.4-1.debian.tar.gz
* v3: html_segments (by_filename by_filetype) internal document links do not
work filenames need to include lang code, fixed
@@ -98,7 +101,6 @@ http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_3
http://www.jus.uio.no/sisu/pkg/src/sisu_3.3.3.orig.tar.xz
sisu_3.3.3.orig.tar.xz
sisu_3.3.3-1.dsc
- sisu_3.3.3-1.debian.tar.gz
* v3: cosmetic, code
* true ? x : y
diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4
index 9d62e553..ef6dff80 100644
--- a/data/doc/sisu/CHANGELOG_v4
+++ b/data/doc/sisu/CHANGELOG_v4
@@ -17,13 +17,19 @@ v2 branch is removed; it is available in sisu =< 3.3.2
%% Reverse Chronological:
+%% 4.0.4.orig.tar.xz (2013-01-28:04/1)
+http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.0.4
+http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.0.4-1
+http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.4.orig.tar.xz
+ sisu_4.0.4.orig.tar.xz
+ sisu_4.0.4-1.dsc
+
%% 4.0.3.orig.tar.xz (2013-01-27:03/7)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.0.3
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.0.3-1
http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.3.orig.tar.xz
sisu_4.0.3.orig.tar.xz
sisu_4.0.3-1.dsc
- sisu_4.0.3-1.debian.tar.gz
* v4: epub some fixing, more documents render in more readers/viewers
* ncx fix, navpoint_close
@@ -41,7 +47,6 @@ http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian
http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.2.orig.tar.xz
sisu_4.0.2.orig.tar.xz
sisu_4.0.2-1.dsc
- sisu_4.0.2-1.debian.tar.gz
* v4: epub
* remove unnecessary conversion of some utf-8 characters to xhtml
@@ -70,7 +75,6 @@ http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian
http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.1.orig.tar.xz
sisu_4.0.1.orig.tar.xz
sisu_4.0.1-1.dsc
- sisu_4.0.1-1.debian.tar.gz
* v4: html_segments (by_filename by_filetype) internal document links do not
work filenames need to include lang code, fixed
@@ -112,7 +116,6 @@ http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian
http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.0.orig.tar.xz
sisu_4.0.0.orig.tar.xz
sisu_4.0.0-1.dsc
- sisu_4.0.0-1.debian.tar.gz
* v4: bin/sisu $0 make possible to run sisu command on/within project dir tree
(previously sisu needed to be correctly installed with system paths honored)
diff --git a/data/sisu/v3/v/version.yml b/data/sisu/v3/v/version.yml
index 01e99d69..57dc6ec1 100644
--- a/data/sisu/v3/v/version.yml
+++ b/data/sisu/v3/v/version.yml
@@ -1,5 +1,5 @@
---
-:version: 3.3.6
-:date_stamp: 2013w03/7
-:date: "2013-01-27"
+:version: 3.3.7
+:date_stamp: 2013w04/1
+:date: "2013-01-28"
:project: SiSU
diff --git a/data/sisu/v4/v/version.yml b/data/sisu/v4/v/version.yml
index 2ab4818f..1ae12c2f 100644
--- a/data/sisu/v4/v/version.yml
+++ b/data/sisu/v4/v/version.yml
@@ -1,5 +1,5 @@
---
-:version: 4.0.3
-:date_stamp: 2013w03/7
-:date: "2013-01-27"
+:version: 4.0.4
+:date_stamp: 2013w04/1
+:date: "2013-01-28"
:project: SiSU
--
cgit v1.2.3
From c0f656c0a644f49ce3b9ea9e53d95d3cbc4a4135 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Mon, 28 Jan 2013 21:55:10 -0500
Subject: v4: param_make, :cover_image: regex, less finicky match of image &
details
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
* [bug reported by Mikael Böök]
---
data/doc/sisu/CHANGELOG_v4 | 5 ++++-
lib/sisu/v4/param_make.rb | 2 +-
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4
index ef6dff80..1ddf47ec 100644
--- a/data/doc/sisu/CHANGELOG_v4
+++ b/data/doc/sisu/CHANGELOG_v4
@@ -24,6 +24,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.4.orig.tar.xz
sisu_4.0.4.orig.tar.xz
sisu_4.0.4-1.dsc
+* v4: param_make, :cover_image: regex, less finicky match of image & details
+ [bug reported by Mikael Böök]
+
%% 4.0.3.orig.tar.xz (2013-01-27:03/7)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.0.3
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.0.3-1
@@ -32,7 +35,7 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.3.orig.tar.xz
sisu_4.0.3-1.dsc
* v4: epub some fixing, more documents render in more readers/viewers
- * ncx fix, navpoint_close
+ * ncx fix, navpoint_close [bug reported by Mikael Böök, with sample fix toc]
* check xml representation of characters (& < > in particular)
* v4: remove markup-sample of the first edition of FaiF as redundant, the
diff --git a/lib/sisu/v4/param_make.rb b/lib/sisu/v4/param_make.rb
index ce35307c..5d184897 100644
--- a/lib/sisu/v4/param_make.rb
+++ b/lib/sisu/v4/param_make.rb
@@ -460,7 +460,7 @@ module SiSU_Param_Make
s=@h['cover_image'].split(/\s*;\s*/)
s=s[0] #if
image={}
- if s =~/{(\S+\.(?:jpg|png|gif))(?:\s+(\d+x\d+))?\s+(?:"(.+?)")?\s*}image/
+ if s =~/{\s*(\S+\.(?:jpg|png|gif))(?:\s+(\d+x\d+))?(?:\s+"(.+?)")?\s*}image/
image[:cover]=$1
if $2
image[:dimensions]=$2
--
cgit v1.2.3
From d335e11e3355ee01f861d631f076889ad850199a Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Thu, 31 Jan 2013 18:28:10 -0500
Subject: v4 v3: dal, on ocn excluded paragraphs (~# -#), hang/indent bullet,
fix
* [bug reported indirectly by Cory Doctorow (discovered in work with markup)]
---
data/doc/sisu/CHANGELOG_v3 | 3 +++
data/doc/sisu/CHANGELOG_v4 | 3 +++
lib/sisu/v3/dal_doc_str.rb | 8 ++++----
lib/sisu/v4/dal_doc_str.rb | 8 ++++----
4 files changed, 14 insertions(+), 8 deletions(-)
diff --git a/data/doc/sisu/CHANGELOG_v3 b/data/doc/sisu/CHANGELOG_v3
index da68e7c4..0a8e960b 100644
--- a/data/doc/sisu/CHANGELOG_v3
+++ b/data/doc/sisu/CHANGELOG_v3
@@ -35,6 +35,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_3.3.7.orig.tar.xz
sisu_3.3.7.orig.tar.xz
sisu_3.3.7-1.dsc
+* v3: dal, on ocn excluded paragraphs (~# -#), hang/indent bullet, fix
+ [bug reported indirectly by Cory Doctorow (discovered in work with markup)]
+
%% 3.3.6.orig.tar.xz (2013-01-27:03/7)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_3.3.6
http://www.jus.uio.no/sisu/pkg/src/sisu_3.3.6.orig.tar.xz
diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4
index 1ddf47ec..759c1bdc 100644
--- a/data/doc/sisu/CHANGELOG_v4
+++ b/data/doc/sisu/CHANGELOG_v4
@@ -27,6 +27,9 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.4.orig.tar.xz
* v4: param_make, :cover_image: regex, less finicky match of image & details
[bug reported by Mikael Böök]
+* v4: dal, on ocn excluded paragraphs (~# -#), hang/indent bullet, fix
+ [bug reported indirectly by Cory Doctorow (discovered in work with markup)]
+
%% 4.0.3.orig.tar.xz (2013-01-27:03/7)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.0.3
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.0.3-1
diff --git a/lib/sisu/v3/dal_doc_str.rb b/lib/sisu/v3/dal_doc_str.rb
index 40fad15e..dafed778 100644
--- a/lib/sisu/v3/dal_doc_str.rb
+++ b/lib/sisu/v3/dal_doc_str.rb
@@ -740,19 +740,19 @@ module SiSU_DAL_DocumentStructureExtract
elsif dob.obj=~/#{Mx[:pa_non_object_no_heading]}/
dob.obj=dob.obj.gsub(/#{Mx[:pa_non_object_no_heading]}/,'')
if dob.is==:para
- h={ obj: dob.obj, ocn_: false, ocn: nil }
+ h={ obj: dob.obj, ocn_: false, ocn: nil, hang: dob.hang, indent: dob.indent, bullet_: dob.bullet_, tags: dob.tags, parent: dob.parent }
dob=SiSU_DAL_DocumentStructure::ObjectPara.new.paragraph(h,dob)
elsif dob.is==:heading
- h={ obj: dob.obj, ocn_: false, ocn: nil, toc_: true }
+ h={ obj: dob.obj, ocn_: false, ocn: nil, toc_: true, parent: dob.parent }
dob=SiSU_DAL_DocumentStructure::ObjectHeading.new.heading(h,dob)
end
elsif dob.obj=~/#{Mx[:pa_non_object_dummy_heading]}/
dob.obj=dob.obj.gsub(/#{Mx[:pa_non_object_dummy_heading]}/,'')
if dob.is==:para
- h={ obj: dob.obj, ocn_: false, ocn: nil }
+ h={ obj: dob.obj, ocn_: false, ocn: nil, hang: dob.hang, indent: dob.indent, bullet_: dob.bullet_, tags: dob.tags, parent: dob.parent }
dob=SiSU_DAL_DocumentStructure::ObjectPara.new.paragraph(h,dob)
elsif dob.is==:heading
- h={ obj: dob.obj, ocn_: false, ocn: nil, toc_: false }
+ h={ obj: dob.obj, ocn_: false, ocn: nil, toc_: false, parent: dob.parent }
dob=SiSU_DAL_DocumentStructure::ObjectHeading.new.heading(h,dob)
end
else dob
diff --git a/lib/sisu/v4/dal_doc_str.rb b/lib/sisu/v4/dal_doc_str.rb
index 40fad15e..dafed778 100644
--- a/lib/sisu/v4/dal_doc_str.rb
+++ b/lib/sisu/v4/dal_doc_str.rb
@@ -740,19 +740,19 @@ module SiSU_DAL_DocumentStructureExtract
elsif dob.obj=~/#{Mx[:pa_non_object_no_heading]}/
dob.obj=dob.obj.gsub(/#{Mx[:pa_non_object_no_heading]}/,'')
if dob.is==:para
- h={ obj: dob.obj, ocn_: false, ocn: nil }
+ h={ obj: dob.obj, ocn_: false, ocn: nil, hang: dob.hang, indent: dob.indent, bullet_: dob.bullet_, tags: dob.tags, parent: dob.parent }
dob=SiSU_DAL_DocumentStructure::ObjectPara.new.paragraph(h,dob)
elsif dob.is==:heading
- h={ obj: dob.obj, ocn_: false, ocn: nil, toc_: true }
+ h={ obj: dob.obj, ocn_: false, ocn: nil, toc_: true, parent: dob.parent }
dob=SiSU_DAL_DocumentStructure::ObjectHeading.new.heading(h,dob)
end
elsif dob.obj=~/#{Mx[:pa_non_object_dummy_heading]}/
dob.obj=dob.obj.gsub(/#{Mx[:pa_non_object_dummy_heading]}/,'')
if dob.is==:para
- h={ obj: dob.obj, ocn_: false, ocn: nil }
+ h={ obj: dob.obj, ocn_: false, ocn: nil, hang: dob.hang, indent: dob.indent, bullet_: dob.bullet_, tags: dob.tags, parent: dob.parent }
dob=SiSU_DAL_DocumentStructure::ObjectPara.new.paragraph(h,dob)
elsif dob.is==:heading
- h={ obj: dob.obj, ocn_: false, ocn: nil, toc_: false }
+ h={ obj: dob.obj, ocn_: false, ocn: nil, toc_: false, parent: dob.parent }
dob=SiSU_DAL_DocumentStructure::ObjectHeading.new.heading(h,dob)
end
else dob
--
cgit v1.2.3
From 8fe365726f3bb7866a7a9285cb5045c50c39fd67 Mon Sep 17 00:00:00 2001
From: Ralph Amissah
Date: Thu, 31 Jan 2013 18:36:08 -0500
Subject: v4: epub, constants, debug alternative for various readers ... work
on
---
data/doc/sisu/CHANGELOG_v4 | 2 +
lib/sisu/v4/constants.rb | 14 ++++
lib/sisu/v4/dal_idx.rb | 11 +---
lib/sisu/v4/epub.rb | 32 +++++-----
lib/sisu/v4/epub_concordance.rb | 10 +--
lib/sisu/v4/epub_format.rb | 137 ++++++++++++++++++++--------------------
lib/sisu/v4/epub_segments.rb | 6 +-
lib/sisu/v4/epub_tune.rb | 10 +--
8 files changed, 115 insertions(+), 107 deletions(-)
diff --git a/data/doc/sisu/CHANGELOG_v4 b/data/doc/sisu/CHANGELOG_v4
index 759c1bdc..55acb451 100644
--- a/data/doc/sisu/CHANGELOG_v4
+++ b/data/doc/sisu/CHANGELOG_v4
@@ -30,6 +30,8 @@ http://www.jus.uio.no/sisu/pkg/src/sisu_4.0.4.orig.tar.xz
* v4: dal, on ocn excluded paragraphs (~# -#), hang/indent bullet, fix
[bug reported indirectly by Cory Doctorow (discovered in work with markup)]
+* v4: epub, constants, debug alternative for various readers ... work on
+
%% 4.0.3.orig.tar.xz (2013-01-27:03/7)
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/sisu_4.0.3
http://sources.sisudoc.org/gitweb/?p=code/sisu.git;a=shortlog;h=refs/tags/debian/sisu_4.0.3-1
diff --git a/lib/sisu/v4/constants.rb b/lib/sisu/v4/constants.rb
index 08279630..65b17796 100644
--- a/lib/sisu/v4/constants.rb
+++ b/lib/sisu/v4/constants.rb
@@ -198,10 +198,24 @@ Px={
}
Px[:lng_lst_rgx]=Px[:lng_lst].join('|')
Ep={
+ alt: :on,
d_oebps: 'OEBPS',
+ d_image: 'OEBPS/image',
+ d_css: 'OEBPS/css',
f_ncx: 'toc.ncx',
f_opf: 'content.opf',
}
+$ep=if Ep[:alt]==:on
+ {
+ o: 'opf:',
+ hsp: ' ',
+ }
+else
+ {
+ o: '',
+ hsp: ' ',
+ }
+end
Db={
name_prefix: "SiSU#{SiSU_version_dir}a_",
name_prefix_db: "sisu_#{SiSU_version_dir}a_",
diff --git a/lib/sisu/v4/dal_idx.rb b/lib/sisu/v4/dal_idx.rb
index 63eb487e..a1d66402 100644
--- a/lib/sisu/v4/dal_idx.rb
+++ b/lib/sisu/v4/dal_idx.rb
@@ -161,12 +161,7 @@ module SiSU_DAL_BookIndex
the_idx
end
def clean_xml(str)
- str=str.gsub(/&/,'&').
- gsub(/\(/,'(').
- gsub(/\)/,')').
- gsub(/\*/,'*').
- gsub(/\+/,'+').
- gsub(/,/,',')
+ str=str.gsub(/&/,'&')
str
end
def index(the_idx)
@@ -193,8 +188,8 @@ module SiSU_DAL_BookIndex
idx[:html] << ''
idx[:xhtml] << ''
else
- idx[:html] << %{#{x} , }
- idx[:xhtml] << %{#{x} , }
+ idx[:html] << %{#{x} ,#{$ep[:hsp]}}
+ idx[:xhtml] << %{#{x} ,#{$ep[:hsp]}}
end
end
idx[:html] << '
'
diff --git a/lib/sisu/v4/epub.rb b/lib/sisu/v4/epub.rb
index 195f719e..a3b9211e 100644
--- a/lib/sisu/v4/epub.rb
+++ b/lib/sisu/v4/epub.rb
@@ -549,7 +549,7 @@ module SiSU_EPUB
segtoc << format_txt_obj.center_bold
if defined? @md.creator.author \
and @md.creator.author
- creator_endnote=@md.creator.author.gsub(/(\*+)/,%{ \\1 })
+ creator_endnote=@md.creator.author.gsub(/(\*+)/,%{#{$ep[:hsp]}\\1 })
tmp_head=creator_endnote + "\n"
txt_obj={ txt: tmp_head }
format_txt_obj=SiSU_EPUB_Format::FormatTextObject.new(@md,txt_obj)
@@ -708,21 +708,21 @@ module SiSU_EPUB
-
- Cover
-
-
-
-
-
-
-
+
+ Cover
+
+
+
+
+
+
+
WOK
filename_xhtml.puts cover_image,"\n"
diff --git a/lib/sisu/v4/epub_concordance.rb b/lib/sisu/v4/epub_concordance.rb
index 93774d30..60242567 100644
--- a/lib/sisu/v4/epub_concordance.rb
+++ b/lib/sisu/v4/epub_concordance.rb
@@ -102,9 +102,9 @@ module SiSU_EPUB_Concordance
@vz=SiSU_Viz::Defaults.new
txt_path=%{#{@md.dir_out}}
@fnb=@md.fnb
- @lex_button=%{ }
+ @lex_button=%{ }
@doc_details =< #{@md.creator.author}
+#{$ep[:hsp]} #{@md.creator.author}
WOK
end
def create
@@ -122,7 +122,7 @@ WOK
[if number of occurences exceed number of references - word occurs more than once in at least one reference. Footnote/endnotes are either assigned to the paragraph from which they are referenced or ignored, so it is relevant to check the footnotes referenced from within a paragraph as well.]
- (After the page is fully loaded) you can jump directly to a word by appending a hash (#) and the word to the url for this text, (do not forget that words are case sensitive, and may be listed twice (starting with and without an upper case letter)), #your_word # [ http://[web host]/#{@fnb}/concordance.html#your_word ]
+ (After the page is fully loaded) you can jump directly to a word by appending a hash (#) and the word to the url for this text, (do not forget that words are case sensitive, and may be listed twice (starting with and without an upper case letter)), #your_word # [#{$ep[:hsp]}http://[web host]/#{@fnb}/concordance.html#your_word#{$ep[:hsp]}]
WOK
end
@@ -284,12 +284,12 @@ WOK
end
end
end
- scr=' scroll: doc# '
+ scr=%{ #{$ep[:hsp]}scroll:#{$ep[:hsp]}doc##{$ep[:hsp]} }
seg=''
@file_concordance << SiSU_EPUB_Concordance::Source::DocTitle.new(@particulars).create
alph=%W[A B C D E F G H I J K L M N O P Q R S T U V W X Y Z]
@file_concordance << ''
- alph.each {|x| @file_concordance << %{#{x} , }}
+ alph.each {|x| @file_concordance << %{#{x} ,#{$ep[:hsp]}}}
@file_concordance << '
'
letter=alph.shift
@file_concordance << %{\nA
}
diff --git a/lib/sisu/v4/epub_format.rb b/lib/sisu/v4/epub_format.rb
index dd3273d0..d8baae63 100644
--- a/lib/sisu/v4/epub_format.rb
+++ b/lib/sisu/v4/epub_format.rb
@@ -69,7 +69,7 @@ module SiSU_EPUB_Format
ocn_class='ocn'
if @ocn.to_i==0
@ocn.gsub(/^(\d+|)$/,
- %{ })
+ %{#{$ep[:hsp]} })
else
@ocn.gsub(/^(\d+|)$/,
%{\\1 })
@@ -77,7 +77,7 @@ module SiSU_EPUB_Format
else
ocn_class='ocn_off'
@ocn.gsub(/^(\d+|)$/,
- %{ })
+ %{#{$ep[:hsp]} })
end
end
def name
@@ -1220,6 +1220,7 @@ module SiSU_EPUB_Format
module SanitizeXML
def self.xml(x)
if x.is_a?(String)
+ x=x.gsub(/ /,' ') if Ep[:alt]==:on
x.gsub(/&/,'&').
gsub(/,'<').gsub(/>/,'>').
#gsub(/,'<').gsub(/>/,'>').
@@ -1246,8 +1247,6 @@ module SiSU_EPUB_Format
def doc_type_xhtml
<<-WOK
-
WOK
end
@@ -1305,25 +1304,25 @@ application/epub+zip
segfilename=dir_epub_cont + '/' + name
output_epub_cont_seg=File.new(segfilename,'w')
output_epub_cont_seg << %{#{doc_type}
-
-
- #{dob.obj} -
- #{@md.html_title}
-
-
-#{@css.xhtml_epub}
-
-#{@vz.color_body}
-
-
-