Upload
ken-senoo
View
633
Download
7
Embed Size (px)
Citation preview
Standardization of Document Style
SENOO
Ken
@senopen
2016-12-10
LibreOffice Kaigi 2016.12
https://twitter.com/senopenmailto:[email protected]://libojapan.connpass.com/event/42685/http://creativecommons.org/publicdomain/zero/1.0/
LibreOffice and I As a user
2011LibreOffice 3.x CalcImpress
As a participant
LibreOffice
2013-09-144
2013-12-145
2016-02-1311
LibreOffice mini Conference
2016-01-10 Osaka/Japan
As a blogger
LibreOffice Advent Calendar 2014
LibreOfficeVBA As a speaker
2
http://www.adventar.org/calendars/507http://myfuturesightforpast.blogspot.jp/2014/12/libreofficevba.htmlhttp://www.slideshare.net/iesli/20140607-libreoffice-miniconferenceltsenooken
On 2014-07-22, The Document
Foundation has shocked...!
3
Acceptance of ODF in Government 4
Details2014-07-22
PDF/AHTMLOpen Document Format (ODF)
121=1401680
Open document formats selected to meet user needs - Press releases - GOV.UK
The selected standards, which are compatible with commonly used document applications, are:
PDF/A or HTML for viewing government documents
Open Document Format (ODF) for sharing or collaborating on government documents
5
https://www.gov.uk/government/news/open-document-formats-selected-to-meet-user-needshttps://www.gov.uk/government/publications/open-standards-for-government
What is meant This?ODFLibreOffice
ODFLibreOffice
6
Question
Do you use LibreOffice or ODF at work?
LibreOfficeODF
6-7
7
In Real MS Office WebHTML
ODF (LibreOffice)ODFOOXMLHTML
8
Why ODF has been accepted?ODFOOXMLHTML
9
One Answer:
POSIXismPOSIX
10
POSIX
W3C
POSIXPOSIX3
POSIX
POSIXC99POSIXWebW3CECMA
, ; & (2016) : POSIX, DICOMO, pp. 1328 -1334. http://tsys.jp/dicomo/program/7A.html.
, (2016) : Windows/Mac/UNIX 20.http://richlab.org/coterie/pfb2.html.
11
http://pubs.opengroup.org/onlinepubs/9699919799/https://www.w3.org/TR/html51/http://www.ecma-international.org/ecma-262/7.0/http://tsys.jp/dicomo/program/7A.htmlhttp://richlab.org/coterie/pfb2.html
Essense of POSIXism
ODF
POSIX1webcurlwgetsendmail2016111222:54
2 2
@shellshoccarjpn
12
https://twitter.com/shellshoccarjpn/status/797437359021166592https://twitter.com/intent/tweet?in_reply_to=797437359021166592https://twitter.com/intent/retweet?tweet_id=797437359021166592https://twitter.com/intent/like?tweet_id=797437359021166592https://twitter.com/shellshoccarjpnhttps://twitter.com/shellshoccarjpn
Real Software Problemg
POSIX
13
3 Ways for Document Exchangeability1. 2. 3.
14
Method
Strength
Weakness
PandocODFOOXMLHTML
Pandoc
15
http://pandoc.org/
Method
Strength
Weakness
Markdown reStructuredText
mdODFODFmd HTML
16
Method
Strength
Weakness
ODFOOXMLHTML
17
2
ODFOOXMLHTML
18
Specification of ODF, OOXML, HTML1 HTMLODFOOXML
Type Section Reference
HTML 4. The elements of HTML W3C (2016) : HTML 5.1. https://www.w3.org/TR/html51/.
ODF 5-10130 ISO/IEC (2015) : ISO/IEC 26300-1 Information technology Open Document Format for Office Applications (OpenDocument) v1.2
Part 1: OpenDocument Schema. http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html.
OOXML 17 17. WordprocessingML
Reference Material1400
ISO/IEC (2012) : ISO/IEC 29500-1 Information technology Document description and processing languages Office Open XML File
Formats Part 1: Fundamentals and Markup Language Reference.
http://standards.iso.org/ittf/PubliclyAvailableStandards/index.html.
19
https://www.w3.org/TR/html51/http://standards.iso.org/ittf/PubliclyAvailableStandards/index.htmlhttp://standards.iso.org/ittf/PubliclyAvailableStandards/index.html
Problem ODFOOXMLXML LibreOffice WriterMS WordXML WriterWordXML LibreOffice WriterMS WordHTML
20
Standard Style = VBABasicAPI
21
LibreOffice Writer
1 5
Paragraph
Character Frame
Page List
1
1
The LibreOffice Documentation Team (2014) : LibreOffice 4.2 Writer Guide. p. 186, Chapter. 6, Style categories htt
ps://wiki.documentfoundation.org/Documentation/Publications.
22
https://wiki.documentfoundation.org/Documentation/Publications
Writer LibreOfficeWriter Basic
LibreOfficeBasicAPI
Macro(OpenOffice.org/LibreOffice Basic)/ Writer No.2The LibreOffice Documentation Team (2015) : LibreOffice 5.0 Base Handbook. English names in macros. https://wi
ki.documentfoundation.org/Documentation/Publications.
23
http://openoffice3.web.fc2.com/OOoBasic_Writer_No2.htmlhttps://wiki.documentfoundation.org/Documentation/Publications
WriterSub oWriterStyle
Dim Dummy()
oDoc = StarDesktop.loadComponentFromURL("private:factory/swriter", "_blank", 0, Dummy())
'Get the StyleFamilies
oFamilies = oDoc.StyleFamilies
oFamilyNames = oFamilies.getElementNames()
oStyleName = oFamilies.getByName("CharacterStyles") ' oDisp = ""
'Get the Style Name
for i = 0 to oStyleName.Count - 1
oDisp = oDisp & i & "," & oStyleName(i).Name & "," & oStyleName(i).DisplayName '' API oDisp = oDisp & Chr$(10)
next i
msgbox(oDisp, 0, "Style Name")
End Sub
24
Writer
176
CharacterStyles 27
ParagraphStyles 122
PageStyles 10
FrameStyles 7
NumberingStyles 10
1
LibreOffice 33.6.7.2
getByName("CharacterStyles")
[Solved] How To Obtain Default PAra Style Name (View topic) Apache OpenOffice Community Forum
LibreOffice: StyleFamilies Service Reference
25
https://forum.openoffice.org/en/forum/viewtopic.php?f=45&t=77830http://api.libreoffice.org/docs/idl/ref/servicecom_1_1sun_1_1star_1_1style_1_1StyleFamilies.html
WriterCharacterStyles NumberingStyles PageStyles FrameStyles
Default
Style
Footnote anchor Numbering 1 1
Standard
Frame
Footnote Symbol Endnote anchor Numbering 2 2
First Page
Graphics
Page Number Rubies Numbering 3 3
Left Page OLE OLE
Caption characters Vertical NumberingSymbols
Numbering 4 4
Right
Page
Formula
Drop Caps Emphasis Numbering 5 5
Envelope Marginalia
Numbering Symbols Citation List 1 1
Index Watermark
Bullet Symbols Strong Emphasis List 2 2
HTML HTML Labels
Internet link Source Text List 3
3
Footnote
Visited Internet Link
Example List 4 4
Endnote
Placeholder User Entry List 5 Landscape
26
WriterParagraphStyles
Standard Title Header
List List Heading
Index
Text body Subtitle Header left
List 1
Start
1
List
Contents
Index Heading
First line
indent
Quotations Header
right
List 1 1 Numbering1 Start
1
Index 1 1
Hanging
indent
Preformatted
Text
Footer
List 1
End
1
Numbering 1 1 Index 2 2
Text body
indent
Horizontal
Line
Footer left
List 1
Cont.
1
Numbering
1 End
1
Index 3 3
Salutation Table
Contents
Footer right
List 2
Start
2
Numbering
1 Cont.
1
Index Separator
Signature Table
Heading
ContentsHeading
List 2 2 Numbering
2 Start
2
User Index
Heading
List Indent
Caption
Contents 1 1 List 2
End
2
Numbering
2
2 User Index 1 1
Marginalia Illustration Contents 2 2 List 2
Cont.
2
Numbering
2 End
2
User Index 2 2
Heading Table Contents 3 3 List 3 3 Numbering 2 User Index 3
27
Writer List 1Numbering 1
28
Word
Character Paragraph
Linked style List Table
Word - Word
29
https://support.office.com/ja-jp/article/Word-%25E3%2581%25AE%25E3%2582%25B9%25E3%2582%25BF%25E3%2582%25A4%25E3%2583%25AB%25E3%2581%25AE%25E5%259F%25BA%25E7%25A4%258E-d382f84d-5c38-4444-98a5-9cbb6ede1ba4?ui=ja-JP&rs=ja-JP&ad=JP&fromAR=1
Word VBAWdBuiltinStyle EnumerationWdBuiltinStyle Enumeration enum DocTools
Item Count
Total 265
30
30
40 21
143
DocTools (2010) : Create List of Local Built-in Style Names. http://www.thedoctools.com/index.php?show=mt_crea
te_style_name_list.
30
https://msdn.microsoft.com/ja-jp/library/microsoft.office.interop.word.wdbuiltinstyle%28v=office.12%29.aspxhttp://www.thedoctools.com/index.php?show=mt_create_style_name_list
WordEnglish style name Local style name English style name Local style name English style name Local style name
1 / 1.1 / 1.1.1 1 / 1.1 / 1.1.1 FollowedHyperlink Envelope Address 1 / a / i 1 / a / i Hyperlink Envelope Return
Article / Section / Line Number Note Heading
Balloon Text Macro Text Salutation Normal Message Header Signature Normal (Web) (Web) No List E-mail Signature Normal Indent No Spacing (not 2003) Date Block Text Placeholder Text (not 2003) Closing
Body Text Plain Text Comment Reference Body Text 2 2 Quote (not 2003) Comment Subject
Body Text 3 3 Revision (not 2003) Comment Text
Body Text First Indent Strong Default Paragraph Font Body Text First Indent 2 2 Subtitle Document Map Body Text Indent Subtle Emphasis (not 2003)
Body Text Indent 2 2 Subtle Reference (not 2003)
Body Text Indent 3 3 Emphasis
Book Title Intense Emphasis (not 2003) 2
Caption Intense Quote (not 2003) 2
Intense Reference (not 2003) 2
31
WordEnglish style name Local style name English style name Local style name English style name Local style name
Heading 1 1 HTML Acronym HTML Endnote Reference Heading 2 2 HTML Address HTML Endnote Text Heading 3 3 HTML Cite HTML Footnote Reference Heading 4 4 HTML Code HTML Footnote Text Heading 5 5 HTML Definition HTML Header Heading 6 6 HTML Keyboard HTML Footer Heading 7 7 HTML Preformatted HTML Page Number Heading 8 8 HTML Sample HTML Heading 9 9 HTML Typewriter HTML
HTML Variable HTML
32
WordEnglish style name Local style name English style name Local style name English style name Local style name
Title Index 1 1 List
TOC 1 1 Index 2 2 List 2 2
TOC 2 2 Index 3 3 List 3 3
TOC 3 3 Index 4 4 List 4 4
TOC 4 4 Index 5 5 List 5 5
TOC 5 5 Index 6 6 List Bullet TOC 6 6 Index 7 7 List Bullet 2 2TOC 7 7 Index 8 8 List Bullet 3 3TOC 8 8 Index 9 9 List Bullet 4 4TOC 9 9 Index Heading List Bullet 5 5TOC Heading (not 2003) Bibliography (not 2003) List Continue Table of Figures List Continue 2 2TOA Heading List Continue 3 3Table of Authorities List Continue 4 4
List Continue 5 5List Number
List Number 2 2
List Number 3 3
List Number 4 4
33
WordEnglish style name Local style name
ColorfulGridAccent1(not2003) ()14
ColorfulGridAccent2(not2003) ()14
ColorfulGridAccent3(not2003) ()14
ColorfulGridAccent4(not2003) ()14
ColorfulGridAccent5(not2003) ()14
ColorfulGridAccent6(not2003) ()14
ColorfulGrid(not2003) ()14
ColorfulListAccent1(not2003) ()13
ColorfulListAccent2(not2003) ()13
ColorfulListAccent3(not2003) ()13
ColorfulListAccent4(not2003) ()13
ColorfulListAccent5(not2003) ()13
ColorfulListAccent6(not2003) ()13
ColorfulList(not2003) ()13
ColorfulShadingAccent1(not2003) ()12
ColorfulShadingAccent2(not2003) ()12
ColorfulShadingAccent3(not2003) ()12
ColorfulShadingAccent4(not2003) ()12
34
Word Writer176Word265 23
MS Office 2003 HTML MS Office 2007OOXML 143
35
HTMLW3CHTML 5.1
Sections Grouping content Text-level semantics Text-level semantics Tabular data
14 13 28 10
body p a data table
article hr em time caption
section blockquote strong code colgroup
nav ol small var colgroup
aside ul s samp tbody
h1, h2, h3, h4, h5, h6 li cite kbd thead
header dl q sub, sup tfoot
footer dt dfn i tr
address dd abbr b td
figure ruby u th
figcaption rb mark
main rt bdi
div rtc bdo
rp span
36
HTML 70
WriterWordCSS Writer/WordHTMLp
37
WriterWordHTML WriterWordHTML HTMLW3C
38
Item Writer Word HTML
Title
Subtitle
Title
Book Title
body>h1
Title
Heading 1-10 Heading 1-9h1-6
or
...
HTML2sectionh1-h66
39
Item Writer Word HTML
Contents Heading TOC Heading (not 2003) nav>h1-h6
Contents 1-10 TOC 1-9 nav>ul>li
Main index entry a
Index HeadingUser Index Heading
Index Heading nav>h1-h6
Index
Index 1-3
User Index 1-10
Index 1-9 nav>dl>dt, dd
nav>ul>li
nav>ol>li
40
Item Writer Word HTML
Header
Header left
Header right
Header header
Footer
Footer left
Footer right
Footer footer
Marginalia - aside
Endnote Endnote Reference
Endnote Text
title
CSS float: footnote;
[title] { border-bottom: thin dashed; }
.Footnote { float: footnote; }
startfootnoteend
Footnote Footnote Reference
Footnote Text
paCSS float: footnote;
Norman: I dont. [1]
Interviewer: You told me you did!
...
[1]
HTML
41
ParagraphItem Writer Word HTML
Standard Normal
Normal (Web)
Normal Indent
body
Text body
Text body indent
First line indent
Hanging indent
Salutation
Signature
List Indent
Addressee
Sender
Body Text
Body Text 2-3
Body Text First Indent
Body Text First Indent 2
Body Text Indent
Body Text Indent 2-3
No List
No Spacing (not 2003)
Envelope Address
Envelope Return
Note Heading
Salutation
Signature
p
Horizontal Line - hr
42
Item Writer Word HTML
List 1-5 List Paragraph (not 2003)List Bullet
List Bullet 2-5
ul>li
Numbering 1-5 List Paragraph (not 2003)List Number
List Number 2-5
ol>li
List HeadingList Contents
List
List 2-5
WordListdl
dl>dt,dd
MS Word 2007List Paragraph
43
Item Writer Word HTML
Citation - q
Citation HTML CiteSubtle Reference (not 2003)
Intense Reference (not 2003)
cite
Quotations Quote (not 2003)
Intense Quote (not 2003)
blockquote
44
Item Writer Word HTML
Emphasis Emphasis em
Strong Emphasis Strong strong Definition HTML Definition dfn
- HTML Acronym abbr
Sender HTML Address
Envelope Return
address
- Date time
Rubies - ruby, rb, rt, rtc, rp
Internet link
Visited Internet Link
Hyperlink
FollowedHyperlink
a
45
PCItem Writer Word HTML
User Entry HTML Keyboard kbd
Variable HTML Variable var
Preformatted Text HTML Preformated pre Source Text HTML Code code
Sample HTML Sample samp
Preformatted Text
Source Text
HTML Preformated
HTML Code
pre>code
Preformatted Text
Sample
HTML Preformated
HTML Sample
pre>samp
HTMLWriterWord
46
Item Writer Word HTML
Formula - math
GraphicsOLE
Drawing
Frame contents
Illustration
Text
- figure
Caption Caption figcaption
Table table
Table Heading th Table Contents td
Caption Caption caption
47
WriterWordHTML
HTMLdl, dt, ddWord Word HeadingTOCIndexWriter10Word
9
HTMLWriterWord Word 2007List Paragraph HTML
48
WriterWord WriterWordHTML WriterWordHTML
dl, dt, dd
pre>codepre>samp
LibreOffice Advent Calendar 201610 #posixismadvent POSIXAdvent Calendar10
49
http://www.adventar.org/calendars/1639#list-2016-12-10https://twitter.com/hashtag/posixismadventhttp://www.adventar.org/calendars/1787#list-2016-12-10
1/2Q1. A1. WordWriterQ2.HTMLA2. HTMLHTML
50
2/2Q3. LibreOfficeWord
A3. Q4. HTML
A4.
51