aboutsummaryrefslogtreecommitdiffhomepage
path: root/org/xhtml.org
diff options
context:
space:
mode:
Diffstat (limited to 'org/xhtml.org')
-rw-r--r--org/xhtml.org117
1 files changed, 43 insertions, 74 deletions
diff --git a/org/xhtml.org b/org/xhtml.org
index 3fc576e9..1e57ea74 100644
--- a/org/xhtml.org
+++ b/org/xhtml.org
@@ -14,11 +14,13 @@
#+PROPERTY: header-args+ :results no
#+PROPERTY: header-args+ :cache no
#+PROPERTY: header-args+ :padline no
+#+PROPERTY: header-args+ :mkdirp yes
* xhtml.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_XHTML
require_relative 'se_hub_particulars' # se_hub_particulars.rb
include SiSU_Particulars
@@ -439,8 +441,9 @@ tidy -xml scroll.xhtml >> index.tidy
* epub2.rb
** xhtml_epub2.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_epub2.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_epub2.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_XHTML_EPUB2
begin
require 'pstore'
@@ -1177,6 +1180,12 @@ module SiSU_XHTML_EPUB2
end
end
def images
+#REMOVE
+#puts @md.env.path.image_source_include + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.env.processing_path.epub + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.env.path.image_source_include_local + ' : ' + __FILE__ + ':' + __LINE__.to_s
+#puts @md.file.output_path.epub.rel_image + ' : ' + __FILE__ + ':' + __LINE__.to_s
+ #img_pth=$sisu_base_data + '/image'
img_pth=@md.env.path.image_source_include
img_src_pth=unless @md.opt.f_pth[:pth] =~/\/\S+?\/sisupod\/\S+?\/sisupod\/doc/
@md.file.output_path.epub.rel_image
@@ -1188,6 +1197,9 @@ module SiSU_XHTML_EPUB2
if FileTest.directory?("#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image") \
&& FileTest.file?("#{img_src_pth}/#{x}")
FileUtils::cp("#{img_src_pth}/#{x}","#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image")
+ #elsif FileTest.directory?("#{$sisu_base_data}/image") \
+ #&& FileTest.file?("#{img_pth}/#{x}")
+ # FileUtils::cp("#{img_pth}/#{x}","#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image")
elsif FileTest.directory?("#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image") \
&& FileTest.file?("#{img_pth}/#{x}")
FileUtils::cp("#{img_pth}/#{x}","#{@md.env.processing_path.epub}/#{Ep[:d_oebps]}/image")
@@ -1279,8 +1291,9 @@ __END__
** xhtml_epub2_concordance.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_epub2_concordance.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_epub2_concordance.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_XHTML_EPUB2_Concordance
require_relative 'se_hub_particulars' # se_hub_particulars.rb
include SiSU_Particulars
@@ -1329,7 +1342,7 @@ module SiSU_XHTML_EPUB2_Concordance
@particulars,@md=particulars,particulars.md
@data=SiSU_XHTML_EPUB2::Source::XHTML_Environment.new(particulars).tuned_file_instructions
@fnb=@md.fnb
- @lex_button=%{<a href="http://www.jus.uio.no/sisu/" target="_top"><img border="0" height="44" width="144" valign="center" src="../_sisu/image/sisu.png" alt="SiSU home"></a>}
+ @lex_button=%{<a href="https://sisudoc.org" target="_top"><img border="0" height="44" width="144" valign="center" src="../_sisu/image/sisu.png" alt="SiSU home"></a>}
@doc_details =<<WOK
<table summary="links to text related to this rudimentary index" width="96%" border="0" bgcolor="white" cellpadding="0" align="center"><tr><td width="2%" align="right">#{$ep[:hsp]}</td><td width="94%" valign="top" align="justify"><h1 class="small"><a href="#{@md.file.base_filename.epub}"><b>#{@md.title.full}</b></a></h1><p class="bold">#{@md.creator.author}</p></td></tr></table>
WOK
@@ -1551,8 +1564,9 @@ __END__
** xhtml_epub2_format.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_epub2_format.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_epub2_format.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_XHTML_EPUB2_Format
class ParagraphNumber
def initialize(md,ocn)
@@ -3773,8 +3787,9 @@ __END__
** xhtml_epub2_persist.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_epub2_persist.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_epub2_persist.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_XHTML_EPUB2_Persist
class Persist
@@persist=nil
@@ -4001,8 +4016,9 @@ __END__
** xhtml_epub2_segments.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_epub2_segments.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_epub2_segments.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_XHTML_EPUB2_Seg
require_relative 'xhtml_shared' # xhtml_shared.rb
require_relative 'xhtml_epub2' # xhtml_epub2.rb
@@ -4550,8 +4566,9 @@ __END__
** xhtml_epub2_tune.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_epub2_tune.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_epub2_tune.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
require_relative 'dp' # dp.rb
module SiSU_XHTML_EPUB2_Tune
require_relative 'se' # se.rb
@@ -4831,8 +4848,9 @@ __END__
* xhtml shared
** xhtml_parts.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_parts.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_parts.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_Parts_XHTML
require_relative 'generic_parts' # generic_parts.rb
include SiSU_Parts_Generic
@@ -4964,8 +4982,9 @@ __END__
** xhtml_shared.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_shared.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_shared.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_XHTML_Shared
require_relative 'xhtml_table' # xhtml_table.rb
class TableXHTML < SiSU_XHTML_Table::TableXHTML
@@ -4976,8 +4995,9 @@ __END__
** xhtml_table.rb
-#+BEGIN_SRC ruby :tangle "../lib/sisu/xhtml_table.rb"
-# <<sisu_document_header>>
+#+HEADER: :tangle "../lib/sisu/xhtml_table.rb"
+#+BEGIN_SRC ruby
+#<<sisu_document_header>>
module SiSU_XHTML_Table
require_relative 'xhtml_parts' # xhtml_parts.rb
class TableXHTML
@@ -5024,57 +5044,6 @@ __END__
* document header
#+NAME: sisu_document_header
-#+BEGIN_SRC text
-encoding: utf-8
-- Name: SiSU
-
- - Description: documents, structuring, processing, publishing, search
- xhtml
-
- - Author: Ralph Amissah
- <ralph.amissah@gmail.com>
-
- - Copyright: (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
- 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2019,
- 2020, 2021, Ralph Amissah,
- All Rights Reserved.
-
- - License: GPL 3 or later:
-
- SiSU, a framework for document structuring, publishing and search
-
- Copyright (C) Ralph Amissah
-
- This program is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by the Free
- Software Foundation, either version 3 of the License, or (at your option)
- any later version.
-
- This program is distributed in the hope that it will be useful, but WITHOUT
- ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- more details.
-
- You should have received a copy of the GNU General Public License along with
- this program. If not, see <http://www.gnu.org/licenses/>.
-
- If you have Internet connection, the latest version of the GPL should be
- available at these locations:
- <http://www.fsf.org/licensing/licenses/gpl.html>
- <http://www.gnu.org/licenses/gpl.html>
-
- <http://www.sisudoc.org/sisu/en/manifest/gpl.fsf.html>
-
- - SiSU uses:
- - Standard SiSU markup syntax,
- - Standard SiSU meta-markup syntax, and the
- - Standard SiSU object citation numbering and system
-
- - Homepages:
- <http://www.sisudoc.org>
-
- - Git
- <https://git.sisudoc.org/projects/>
- <https://git.sisudoc.org/projects/?p=software/sisu.git;a=summary>
- <https://git.sisudoc.org/projects/?p=markup/sisu-markup-samples.git;a=summary>
+#+BEGIN_SRC emacs-lisp
+<<./sisu_version_info_and_doc_header_including_copyright_and_license.org:sisu_doc_header_including_copyright_and_license()>>
#+END_SRC