feat: Add settings
parent
2bfdf9bc2b
commit
84972af477
|
@ -0,0 +1,39 @@
|
||||||
|
use crate::documents::BuildXML;
|
||||||
|
use crate::xml_builder::*;
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
pub struct DefaultTabStop {
|
||||||
|
val: usize,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl DefaultTabStop {
|
||||||
|
pub fn new(val: usize) -> DefaultTabStop {
|
||||||
|
DefaultTabStop { val }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl BuildXML for DefaultTabStop {
|
||||||
|
fn build(&self) -> Vec<u8> {
|
||||||
|
let b = XMLBuilder::new();
|
||||||
|
b.default_tab_stop(self.val).build()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
#[cfg(test)]
|
||||||
|
use pretty_assertions::assert_eq;
|
||||||
|
use std::str;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_zoom() {
|
||||||
|
let c = DefaultTabStop::new(20);
|
||||||
|
let b = c.build();
|
||||||
|
assert_eq!(
|
||||||
|
str::from_utf8(&b).unwrap(),
|
||||||
|
r#"<w:defaultTabStop w:val="20" />"#
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -3,6 +3,7 @@ mod bold;
|
||||||
mod bold_cs;
|
mod bold_cs;
|
||||||
mod br;
|
mod br;
|
||||||
mod color;
|
mod color;
|
||||||
|
mod default_tab_stop;
|
||||||
mod doc_defaults;
|
mod doc_defaults;
|
||||||
mod grid_span;
|
mod grid_span;
|
||||||
mod highlight;
|
mod highlight;
|
||||||
|
@ -38,12 +39,14 @@ mod table_row_property;
|
||||||
mod table_width;
|
mod table_width;
|
||||||
mod text;
|
mod text;
|
||||||
mod vertical_merge;
|
mod vertical_merge;
|
||||||
|
mod zoom;
|
||||||
|
|
||||||
pub use based_on::*;
|
pub use based_on::*;
|
||||||
pub use bold::*;
|
pub use bold::*;
|
||||||
pub use bold_cs::*;
|
pub use bold_cs::*;
|
||||||
pub use br::*;
|
pub use br::*;
|
||||||
pub use color::*;
|
pub use color::*;
|
||||||
|
pub use default_tab_stop::*;
|
||||||
pub use doc_defaults::*;
|
pub use doc_defaults::*;
|
||||||
pub use grid_span::*;
|
pub use grid_span::*;
|
||||||
pub use highlight::*;
|
pub use highlight::*;
|
||||||
|
@ -79,3 +82,4 @@ pub use table_row_property::*;
|
||||||
pub use table_width::*;
|
pub use table_width::*;
|
||||||
pub use text::*;
|
pub use text::*;
|
||||||
pub use vertical_merge::*;
|
pub use vertical_merge::*;
|
||||||
|
pub use zoom::*;
|
||||||
|
|
|
@ -0,0 +1,36 @@
|
||||||
|
use crate::documents::BuildXML;
|
||||||
|
use crate::xml_builder::*;
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
pub struct Zoom {
|
||||||
|
val: usize,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Zoom {
|
||||||
|
pub fn new(val: usize) -> Zoom {
|
||||||
|
Zoom { val }
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl BuildXML for Zoom {
|
||||||
|
fn build(&self) -> Vec<u8> {
|
||||||
|
let b = XMLBuilder::new();
|
||||||
|
b.zoom(&format!("{}", self.val)).build()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
#[cfg(test)]
|
||||||
|
use pretty_assertions::assert_eq;
|
||||||
|
use std::str;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_zoom() {
|
||||||
|
let c = Zoom::new(20);
|
||||||
|
let b = c.build();
|
||||||
|
assert_eq!(str::from_utf8(&b).unwrap(), r#"<w:zoom w:percent="20" />"#);
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,6 +5,7 @@ mod document;
|
||||||
mod document_rels;
|
mod document_rels;
|
||||||
mod elements;
|
mod elements;
|
||||||
mod rels;
|
mod rels;
|
||||||
|
mod settings;
|
||||||
mod styles;
|
mod styles;
|
||||||
mod xml_docx;
|
mod xml_docx;
|
||||||
|
|
||||||
|
@ -16,6 +17,7 @@ pub use document::*;
|
||||||
pub use document_rels::*;
|
pub use document_rels::*;
|
||||||
pub use elements::*;
|
pub use elements::*;
|
||||||
pub use rels::*;
|
pub use rels::*;
|
||||||
|
pub use settings::*;
|
||||||
pub use styles::*;
|
pub use styles::*;
|
||||||
pub use xml_docx::*;
|
pub use xml_docx::*;
|
||||||
|
|
||||||
|
@ -27,6 +29,7 @@ pub struct Docx {
|
||||||
doc_props: DocProps,
|
doc_props: DocProps,
|
||||||
styles: Styles,
|
styles: Styles,
|
||||||
document: Document,
|
document: Document,
|
||||||
|
settings: Settings,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Docx {
|
impl Default for Docx {
|
||||||
|
@ -37,6 +40,7 @@ impl Default for Docx {
|
||||||
let styles = Styles::new();
|
let styles = Styles::new();
|
||||||
let document = Document::new();
|
let document = Document::new();
|
||||||
let document_rels = DocumentRels::new();
|
let document_rels = DocumentRels::new();
|
||||||
|
let settings = Settings::new();
|
||||||
Docx {
|
Docx {
|
||||||
content_type,
|
content_type,
|
||||||
rels,
|
rels,
|
||||||
|
@ -44,6 +48,7 @@ impl Default for Docx {
|
||||||
styles,
|
styles,
|
||||||
document,
|
document,
|
||||||
document_rels,
|
document_rels,
|
||||||
|
settings,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -71,6 +76,7 @@ impl Docx {
|
||||||
styles: self.styles.build(),
|
styles: self.styles.build(),
|
||||||
document: self.document.build(),
|
document: self.document.build(),
|
||||||
document_rels: self.document_rels.build(),
|
document_rels: self.document_rels.build(),
|
||||||
|
settings: self.settings.build(),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,56 @@
|
||||||
|
use super::{DefaultTabStop, Style, Zoom};
|
||||||
|
use crate::documents::BuildXML;
|
||||||
|
use crate::xml_builder::*;
|
||||||
|
|
||||||
|
#[derive(Debug)]
|
||||||
|
pub struct Settings {
|
||||||
|
default_tab_stop: DefaultTabStop,
|
||||||
|
zoom: Zoom,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Settings {
|
||||||
|
pub fn new() -> Settings {
|
||||||
|
Default::default()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl Default for Settings {
|
||||||
|
fn default() -> Self {
|
||||||
|
Self {
|
||||||
|
default_tab_stop: DefaultTabStop::new(709),
|
||||||
|
zoom: Zoom::new(100),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
impl BuildXML for Settings {
|
||||||
|
fn build(&self) -> Vec<u8> {
|
||||||
|
let b = XMLBuilder::new();
|
||||||
|
b.declaration(Some(true))
|
||||||
|
.open_settings()
|
||||||
|
.add_child(&self.default_tab_stop)
|
||||||
|
.add_child(&self.zoom)
|
||||||
|
.close()
|
||||||
|
.build()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
#[cfg(test)]
|
||||||
|
use pretty_assertions::assert_eq;
|
||||||
|
use std::str;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_settings() {
|
||||||
|
let c = Settings::new();
|
||||||
|
let b = c.build();
|
||||||
|
assert_eq!(
|
||||||
|
str::from_utf8(&b).unwrap(),
|
||||||
|
r#"<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<w:settings xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"><w:defaultTabStop w:val="709" /><w:zoom w:percent="100" /></w:settings>"#
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -12,6 +12,7 @@ pub struct XMLDocx {
|
||||||
pub styles: Vec<u8>,
|
pub styles: Vec<u8>,
|
||||||
pub document: Vec<u8>,
|
pub document: Vec<u8>,
|
||||||
pub document_rels: Vec<u8>,
|
pub document_rels: Vec<u8>,
|
||||||
|
pub settings: Vec<u8>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl XMLDocx {
|
impl XMLDocx {
|
||||||
|
|
|
@ -126,6 +126,8 @@ impl XMLBuilder {
|
||||||
|
|
||||||
closed_el!(tab, "w:tab");
|
closed_el!(tab, "w:tab");
|
||||||
closed_el!(br, "w:br", "w:type");
|
closed_el!(br, "w:br", "w:type");
|
||||||
|
closed_el!(zoom, "w:zoom", "w:percent");
|
||||||
|
only_usize_val_el!(default_tab_stop, "w:defaultTabStop");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
@ -7,6 +7,7 @@ mod document;
|
||||||
mod elements;
|
mod elements;
|
||||||
mod properties;
|
mod properties;
|
||||||
mod relationship;
|
mod relationship;
|
||||||
|
mod settings;
|
||||||
mod styles;
|
mod styles;
|
||||||
|
|
||||||
use crate::BuildXML;
|
use crate::BuildXML;
|
||||||
|
|
|
@ -0,0 +1,33 @@
|
||||||
|
use super::XMLBuilder;
|
||||||
|
use super::XmlEvent;
|
||||||
|
|
||||||
|
impl XMLBuilder {
|
||||||
|
pub(crate) fn open_settings(mut self) -> Self {
|
||||||
|
self.writer
|
||||||
|
.write(XmlEvent::start_element("w:settings").attr(
|
||||||
|
"xmlns:w",
|
||||||
|
"http://schemas.openxmlformats.org/wordprocessingml/2006/main",
|
||||||
|
))
|
||||||
|
.expect("should write to buf");
|
||||||
|
self
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#[cfg(test)]
|
||||||
|
mod tests {
|
||||||
|
|
||||||
|
use super::*;
|
||||||
|
#[cfg(test)]
|
||||||
|
use pretty_assertions::assert_eq;
|
||||||
|
use std::str;
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn test_declaration() {
|
||||||
|
let b = XMLBuilder::new();
|
||||||
|
let r = b.open_settings().close().build();
|
||||||
|
assert_eq!(
|
||||||
|
str::from_utf8(&r).unwrap(),
|
||||||
|
r#"<w:settings xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" />"#
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
|
@ -33,6 +33,8 @@ where
|
||||||
zip.write_all(&xml.document)?;
|
zip.write_all(&xml.document)?;
|
||||||
zip.start_file("word/styles.xml", options)?;
|
zip.start_file("word/styles.xml", options)?;
|
||||||
zip.write_all(&xml.styles)?;
|
zip.write_all(&xml.styles)?;
|
||||||
|
zip.start_file("word/settings.xml", options)?;
|
||||||
|
zip.write_all(&xml.settings)?;
|
||||||
zip.finish()?;
|
zip.finish()?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,11 +1,3 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
|
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types"><Override PartName="/_rels/.rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/><Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/><Override PartName="/word/_rels/document.xml.rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/><Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/><Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/><Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/><Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
|
||||||
<Override PartName="/_rels/.rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
|
||||||
<Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
|
|
||||||
<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
|
|
||||||
<Override PartName="/word/_rels/document.xml.rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
|
|
||||||
<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>
|
|
||||||
<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>
|
|
||||||
<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
|
|
||||||
<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
|
|
||||||
</Types>
|
</Types>
|
|
@ -1,6 +1,3 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
|
||||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties" Target="docProps/core.xml"/>
|
|
||||||
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties" Target="docProps/app.xml"/>
|
|
||||||
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument" Target="word/document.xml"/>
|
|
||||||
</Relationships>
|
</Relationships>
|
|
@ -1,12 +1,2 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties"
|
<Properties xmlns="http://schemas.openxmlformats.org/officeDocument/2006/extended-properties" xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"><Template></Template><TotalTime>0</TotalTime><Application>LibreOffice/6.0.7.3$Linux_X86_64 LibreOffice_project/00m0$Build-3</Application><Pages>1</Pages><Words>1</Words><Characters>5</Characters><CharactersWithSpaces>5</CharactersWithSpaces><Paragraphs>1</Paragraphs></Properties>
|
||||||
xmlns:vt="http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes">
|
|
||||||
<Template></Template>
|
|
||||||
<TotalTime>0</TotalTime>
|
|
||||||
<Application>LibreOffice/6.0.7.3$Linux_X86_64 LibreOffice_project/00m0$Build-3</Application>
|
|
||||||
<Pages>1</Pages>
|
|
||||||
<Words>1</Words>
|
|
||||||
<Characters>5</Characters>
|
|
||||||
<CharactersWithSpaces>5</CharactersWithSpaces>
|
|
||||||
<Paragraphs>1</Paragraphs>
|
|
||||||
</Properties>
|
|
|
@ -1,16 +1,2 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties"
|
<cp:coreProperties xmlns:cp="http://schemas.openxmlformats.org/package/2006/metadata/core-properties" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcterms="http://purl.org/dc/terms/" xmlns:dcmitype="http://purl.org/dc/dcmitype/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><dcterms:created xsi:type="dcterms:W3CDTF">2019-09-13T19:32:17Z</dcterms:created><dc:creator></dc:creator><dc:description></dc:description><dc:language>ja-JP</dc:language><cp:lastModifiedBy></cp:lastModifiedBy><dcterms:modified xsi:type="dcterms:W3CDTF">2019-09-13T19:32:34Z</dcterms:modified><cp:revision>1</cp:revision><dc:subject></dc:subject><dc:title></dc:title></cp:coreProperties>
|
||||||
xmlns:dc="http://purl.org/dc/elements/1.1/"
|
|
||||||
xmlns:dcterms="http://purl.org/dc/terms/"
|
|
||||||
xmlns:dcmitype="http://purl.org/dc/dcmitype/"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
|
||||||
<dcterms:created xsi:type="dcterms:W3CDTF">2019-09-13T19:32:17Z</dcterms:created>
|
|
||||||
<dc:creator></dc:creator>
|
|
||||||
<dc:description></dc:description>
|
|
||||||
<dc:language>ja-JP</dc:language>
|
|
||||||
<cp:lastModifiedBy></cp:lastModifiedBy>
|
|
||||||
<dcterms:modified xsi:type="dcterms:W3CDTF">2019-09-13T19:32:34Z</dcterms:modified>
|
|
||||||
<cp:revision>1</cp:revision>
|
|
||||||
<dc:subject></dc:subject>
|
|
||||||
<dc:title></dc:title>
|
|
||||||
</cp:coreProperties>
|
|
|
@ -1,6 +1,3 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships">
|
<Relationships xmlns="http://schemas.openxmlformats.org/package/2006/relationships"><Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/><Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/><Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/>
|
||||||
<Relationship Id="rId1" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles" Target="styles.xml"/>
|
|
||||||
<Relationship Id="rId2" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/fontTable" Target="fontTable.xml"/>
|
|
||||||
<Relationship Id="rId3" Type="http://schemas.openxmlformats.org/officeDocument/2006/relationships/settings" Target="settings.xml"/>
|
|
||||||
</Relationships>
|
</Relationships>
|
|
@ -1,33 +1,2 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<w:document xmlns:o="urn:schemas-microsoft-com:office:office"
|
<w:document xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w10="urn:schemas-microsoft-com:office:word" xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing" xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape" xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" mc:Ignorable="w14 wp14"><w:body><w:p><w:pPr><w:pStyle w:val="Normal"/><w:rPr></w:rPr></w:pPr><w:r><w:rPr></w:rPr><w:t>Hello</w:t></w:r></w:p><w:sectPr><w:type w:val="nextPage"/><w:pgSz w:w="11906" w:h="16838"/><w:pgMar w:left="1134" w:right="1134" w:header="0" w:top="1134" w:footer="0" w:bottom="1134" w:gutter="0"/><w:pgNumType w:fmt="decimal"/><w:formProt w:val="false"/><w:textDirection w:val="lrTb"/></w:sectPr></w:body></w:document>
|
||||||
xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships"
|
|
||||||
xmlns:v="urn:schemas-microsoft-com:vml"
|
|
||||||
xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
|
||||||
xmlns:w10="urn:schemas-microsoft-com:office:word"
|
|
||||||
xmlns:wp="http://schemas.openxmlformats.org/drawingml/2006/wordprocessingDrawing"
|
|
||||||
xmlns:wps="http://schemas.microsoft.com/office/word/2010/wordprocessingShape"
|
|
||||||
xmlns:wpg="http://schemas.microsoft.com/office/word/2010/wordprocessingGroup"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
||||||
xmlns:wp14="http://schemas.microsoft.com/office/word/2010/wordprocessingDrawing"
|
|
||||||
xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" mc:Ignorable="w14 wp14">
|
|
||||||
<w:body>
|
|
||||||
<w:p>
|
|
||||||
<w:pPr>
|
|
||||||
<w:pStyle w:val="Normal"/>
|
|
||||||
<w:rPr></w:rPr>
|
|
||||||
</w:pPr>
|
|
||||||
<w:r>
|
|
||||||
<w:rPr></w:rPr>
|
|
||||||
<w:t>Hello</w:t>
|
|
||||||
</w:r>
|
|
||||||
</w:p>
|
|
||||||
<w:sectPr>
|
|
||||||
<w:type w:val="nextPage"/>
|
|
||||||
<w:pgSz w:w="11906" w:h="16838"/>
|
|
||||||
<w:pgMar w:left="1134" w:right="1134" w:header="0" w:top="1134" w:footer="0" w:bottom="1134" w:gutter="0"/>
|
|
||||||
<w:pgNumType w:fmt="decimal"/>
|
|
||||||
<w:formProt w:val="false"/>
|
|
||||||
<w:textDirection w:val="lrTb"/>
|
|
||||||
</w:sectPr>
|
|
||||||
</w:body>
|
|
||||||
</w:document>
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
|
<w:settings xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
||||||
|
<w:zoom w:percent="100"/>
|
||||||
|
<w:defaultTabStop w:val="709"/>
|
||||||
|
<w:compat>
|
||||||
|
<w:doNotExpandShiftReturn/>
|
||||||
|
</w:compat>
|
||||||
|
</w:settings>
|
|
@ -1,94 +1,2 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
|
<w:styles xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main" xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="w14"><w:docDefaults><w:rPrDefault><w:rPr><w:rFonts w:ascii="Liberation Serif" w:hAnsi="Liberation Serif" w:eastAsia="Noto Sans CJK JP" w:cs="Lohit Devanagari"/><w:kern w:val="2"/><w:sz w:val="24"/><w:szCs w:val="24"/><w:lang w:val="en-US" w:eastAsia="ja-JP" w:bidi="hi-IN"/></w:rPr></w:rPrDefault><w:pPrDefault><w:pPr><w:widowControl/></w:pPr></w:pPrDefault></w:docDefaults><w:style w:type="paragraph" w:styleId="Normal"><w:name w:val="Normal"/><w:qFormat/><w:pPr><w:widowControl/></w:pPr><w:rPr><w:rFonts w:ascii="Liberation Serif" w:hAnsi="Liberation Serif" w:eastAsia="Noto Sans CJK JP" w:cs="Lohit Devanagari"/><w:color w:val="auto"/><w:kern w:val="2"/><w:sz w:val="24"/><w:szCs w:val="24"/><w:lang w:val="en-US" w:eastAsia="ja-JP" w:bidi="hi-IN"/></w:rPr></w:style><w:style w:type="paragraph" w:styleId="Style14"><w:name w:val="見出し"/><w:basedOn w:val="Normal"/><w:next w:val="Style15"/><w:qFormat/><w:pPr><w:keepNext w:val="true"/><w:spacing w:before="240" w:after="120"/></w:pPr><w:rPr><w:rFonts w:ascii="Liberation Sans" w:hAnsi="Liberation Sans" w:eastAsia="Noto Sans CJK JP" w:cs="Lohit Devanagari"/><w:sz w:val="28"/><w:szCs w:val="28"/></w:rPr></w:style><w:style w:type="paragraph" w:styleId="Style15"><w:name w:val="Body Text"/><w:basedOn w:val="Normal"/><w:pPr><w:spacing w:lineRule="auto" w:line="276" w:before="0" w:after="140"/></w:pPr><w:rPr></w:rPr></w:style><w:style w:type="paragraph" w:styleId="Style16"><w:name w:val="List"/><w:basedOn w:val="Style15"/><w:pPr></w:pPr><w:rPr><w:rFonts w:cs="Lohit Devanagari"/></w:rPr></w:style><w:style w:type="paragraph" w:styleId="Style17"><w:name w:val="Caption"/><w:basedOn w:val="Normal"/><w:qFormat/><w:pPr><w:suppressLineNumbers/><w:spacing w:before="120" w:after="120"/></w:pPr><w:rPr><w:rFonts w:cs="Lohit Devanagari"/><w:i/><w:iCs/><w:sz w:val="24"/><w:szCs w:val="24"/></w:rPr></w:style><w:style w:type="paragraph" w:styleId="Style18"><w:name w:val="索引"/><w:basedOn w:val="Normal"/><w:qFormat/><w:pPr><w:suppressLineNumbers/></w:pPr><w:rPr><w:rFonts w:cs="Lohit Devanagari"/></w:rPr></w:style></w:styles>
|
||||||
xmlns:w14="http://schemas.microsoft.com/office/word/2010/wordml"
|
|
||||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" mc:Ignorable="w14">
|
|
||||||
<w:docDefaults>
|
|
||||||
<w:rPrDefault>
|
|
||||||
<w:rPr>
|
|
||||||
<w:rFonts w:ascii="Liberation Serif" w:hAnsi="Liberation Serif" w:eastAsia="Noto Sans CJK JP" w:cs="Lohit Devanagari"/>
|
|
||||||
<w:kern w:val="2"/>
|
|
||||||
<w:sz w:val="24"/>
|
|
||||||
<w:szCs w:val="24"/>
|
|
||||||
<w:lang w:val="en-US" w:eastAsia="ja-JP" w:bidi="hi-IN"/>
|
|
||||||
</w:rPr>
|
|
||||||
</w:rPrDefault>
|
|
||||||
<w:pPrDefault>
|
|
||||||
<w:pPr>
|
|
||||||
<w:widowControl/>
|
|
||||||
</w:pPr>
|
|
||||||
</w:pPrDefault>
|
|
||||||
</w:docDefaults>
|
|
||||||
<w:style w:type="paragraph" w:styleId="Normal">
|
|
||||||
<w:name w:val="Normal"/>
|
|
||||||
<w:qFormat/>
|
|
||||||
<w:pPr>
|
|
||||||
<w:widowControl/>
|
|
||||||
</w:pPr>
|
|
||||||
<w:rPr>
|
|
||||||
<w:rFonts w:ascii="Liberation Serif" w:hAnsi="Liberation Serif" w:eastAsia="Noto Sans CJK JP" w:cs="Lohit Devanagari"/>
|
|
||||||
<w:color w:val="auto"/>
|
|
||||||
<w:kern w:val="2"/>
|
|
||||||
<w:sz w:val="24"/>
|
|
||||||
<w:szCs w:val="24"/>
|
|
||||||
<w:lang w:val="en-US" w:eastAsia="ja-JP" w:bidi="hi-IN"/>
|
|
||||||
</w:rPr>
|
|
||||||
</w:style>
|
|
||||||
<w:style w:type="paragraph" w:styleId="Style14">
|
|
||||||
<w:name w:val="見出し"/>
|
|
||||||
<w:basedOn w:val="Normal"/>
|
|
||||||
<w:next w:val="Style15"/>
|
|
||||||
<w:qFormat/>
|
|
||||||
<w:pPr>
|
|
||||||
<w:keepNext w:val="true"/>
|
|
||||||
<w:spacing w:before="240" w:after="120"/>
|
|
||||||
</w:pPr>
|
|
||||||
<w:rPr>
|
|
||||||
<w:rFonts w:ascii="Liberation Sans" w:hAnsi="Liberation Sans" w:eastAsia="Noto Sans CJK JP" w:cs="Lohit Devanagari"/>
|
|
||||||
<w:sz w:val="28"/>
|
|
||||||
<w:szCs w:val="28"/>
|
|
||||||
</w:rPr>
|
|
||||||
</w:style>
|
|
||||||
<w:style w:type="paragraph" w:styleId="Style15">
|
|
||||||
<w:name w:val="Body Text"/>
|
|
||||||
<w:basedOn w:val="Normal"/>
|
|
||||||
<w:pPr>
|
|
||||||
<w:spacing w:lineRule="auto" w:line="276" w:before="0" w:after="140"/>
|
|
||||||
</w:pPr>
|
|
||||||
<w:rPr></w:rPr>
|
|
||||||
</w:style>
|
|
||||||
<w:style w:type="paragraph" w:styleId="Style16">
|
|
||||||
<w:name w:val="List"/>
|
|
||||||
<w:basedOn w:val="Style15"/>
|
|
||||||
<w:pPr></w:pPr>
|
|
||||||
<w:rPr>
|
|
||||||
<w:rFonts w:cs="Lohit Devanagari"/>
|
|
||||||
</w:rPr>
|
|
||||||
</w:style>
|
|
||||||
<w:style w:type="paragraph" w:styleId="Style17">
|
|
||||||
<w:name w:val="Caption"/>
|
|
||||||
<w:basedOn w:val="Normal"/>
|
|
||||||
<w:qFormat/>
|
|
||||||
<w:pPr>
|
|
||||||
<w:suppressLineNumbers/>
|
|
||||||
<w:spacing w:before="120" w:after="120"/>
|
|
||||||
</w:pPr>
|
|
||||||
<w:rPr>
|
|
||||||
<w:rFonts w:cs="Lohit Devanagari"/>
|
|
||||||
<w:i/>
|
|
||||||
<w:iCs/>
|
|
||||||
<w:sz w:val="24"/>
|
|
||||||
<w:szCs w:val="24"/>
|
|
||||||
</w:rPr>
|
|
||||||
</w:style>
|
|
||||||
<w:style w:type="paragraph" w:styleId="Style18">
|
|
||||||
<w:name w:val="索引"/>
|
|
||||||
<w:basedOn w:val="Normal"/>
|
|
||||||
<w:qFormat/>
|
|
||||||
<w:pPr>
|
|
||||||
<w:suppressLineNumbers/>
|
|
||||||
</w:pPr>
|
|
||||||
<w:rPr>
|
|
||||||
<w:rFonts w:cs="Lohit Devanagari"/>
|
|
||||||
</w:rPr>
|
|
||||||
</w:style>
|
|
||||||
</w:styles>
|
|
Loading…
Reference in New Issue