{"id":40,"date":"2021-08-03T14:40:18","date_gmt":"2021-08-03T18:40:18","guid":{"rendered":"https:\/\/pressbooks.library.ryerson.ca\/pdccguide\/?post_type=chapter&#038;p=40"},"modified":"2022-02-28T11:32:06","modified_gmt":"2022-02-28T16:32:06","slug":"importing-text-into-pressbooks","status":"publish","type":"chapter","link":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/chapter\/importing-text-into-pressbooks\/","title":{"raw":"Importing Text into Pressbooks","rendered":"Importing Text into Pressbooks"},"content":{"raw":"When looking for a public domain texts, favour epub, Word, OpenOffice or HTML files. These types of files are easily editable without additional manipulation. \u00a0 PDF files cannot be loaded directly into Pressbooks and need to be converted into another format before they can be imported.\r\n\r\nContent can be imported from two types of sources - files and urls.\u00a0 The following file types can be imported:\r\n<ul>\r\n \t<li style=\"font-weight: 400;\">EPUB (.epub)<\/li>\r\n \t<li style=\"font-weight: 400;\">Word document (.docx)<\/li>\r\n \t<li style=\"font-weight: 400;\">OpenOffice documents (.odt)<\/li>\r\n \t<li style=\"font-weight: 400;\">Pressbooks\/WordPress XML (.xml or .wxr)<\/li>\r\n \t<li style=\"font-weight: 400;\">Web page (.html or URL)<\/li>\r\n<\/ul>\r\nThe Pressbooks import tool can be found under <strong>Tools<\/strong> &gt; <strong>Import<\/strong> in the left-hand menu.\r\n\r\n&nbsp;\r\n\r\n[caption id=\"attachment_401\" align=\"aligncenter\" width=\"300\"]<img src=\"http:\/\/pressbooks.library.ryerson.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Tools_Import-300x159.png\" alt=\"\" width=\"300\" height=\"159\" class=\"size-medium wp-image-401\" \/> Pressbooks Menu Option for Import Text[\/caption]\r\n\r\nWhen you select Import you will be asked to indicate if you are importing from a file or from a url.\r\n\r\n[caption id=\"attachment_402\" align=\"aligncenter\" width=\"300\"]<img src=\"http:\/\/pressbooks.library.ryerson.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source-300x119.png\" alt=\"\" width=\"300\" height=\"119\" class=\"size-medium wp-image-402\" \/> Import Screen showing Source Options[\/caption]\r\n\r\nWhen you click \"Begin Import\" Pressbooks will parse the content to be imported and provide you a summary of the content.\u00a0 This will give you some idea how well the import will work and will provide you with some options for how the import should proceed.\u00a0 Ideally the content should be broken down into chunks reflecting the chapters.\r\n\r\n&nbsp;\r\n\r\n[caption id=\"attachment_403\" align=\"aligncenter\" width=\"1024\"]<img src=\"http:\/\/pressbooks.library.ryerson.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-1024x572.png\" alt=\"\" width=\"1024\" height=\"572\" class=\"size-large wp-image-403\" \/> Parsing of Content to be Imported into a book in Pressbooks[\/caption]\r\n\r\nYou can choose which chunks of content to import and indicate where it should go in the new book.\r\n\r\nThis example is of a problematic import as the text, <em>Frankenstein,<\/em> should consists of twenty four chapters, some letters, and a preface and what we are looking at importing here is seven \"chapters\" of text.\u00a0 This will require considerable clean-up if the import proceeds.\u00a0 A better idea would be to look for a cleaner version of the text.\r\n\r\nMore detailed information about importing can be found in the <em>Pressbooks Guide<\/em> in the chapter on <a href=\"https:\/\/guide.pressbooks.com\/chapter\/tools\/#chapter-241-section-1\">Tools<\/a>.\r\n\r\n&nbsp;","rendered":"<p>When looking for a public domain texts, favour epub, Word, OpenOffice or HTML files. These types of files are easily editable without additional manipulation. \u00a0 PDF files cannot be loaded directly into Pressbooks and need to be converted into another format before they can be imported.<\/p>\n<p>Content can be imported from two types of sources &#8211; files and urls.\u00a0 The following file types can be imported:<\/p>\n<ul>\n<li style=\"font-weight: 400;\">EPUB (.epub)<\/li>\n<li style=\"font-weight: 400;\">Word document (.docx)<\/li>\n<li style=\"font-weight: 400;\">OpenOffice documents (.odt)<\/li>\n<li style=\"font-weight: 400;\">Pressbooks\/WordPress XML (.xml or .wxr)<\/li>\n<li style=\"font-weight: 400;\">Web page (.html or URL)<\/li>\n<\/ul>\n<p>The Pressbooks import tool can be found under <strong>Tools<\/strong> &gt; <strong>Import<\/strong> in the left-hand menu.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_401\" aria-describedby=\"caption-attachment-401\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.ryerson.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Tools_Import-300x159.png\" alt=\"\" width=\"300\" height=\"159\" class=\"size-medium wp-image-401\" srcset=\"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Tools_Import-300x159.png 300w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Tools_Import-65x34.png 65w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Tools_Import-225x119.png 225w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Tools_Import-350x185.png 350w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Tools_Import.png 672w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-401\" class=\"wp-caption-text\">Pressbooks Menu Option for Import Text<\/figcaption><\/figure>\n<p>When you select Import you will be asked to indicate if you are importing from a file or from a url.<\/p>\n<figure id=\"attachment_402\" aria-describedby=\"caption-attachment-402\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.ryerson.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source-300x119.png\" alt=\"\" width=\"300\" height=\"119\" class=\"size-medium wp-image-402\" srcset=\"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source-300x119.png 300w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source-1024x407.png 1024w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source-768x306.png 768w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source-65x26.png 65w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source-225x90.png 225w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source-350x139.png 350w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Source.png 1468w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><figcaption id=\"caption-attachment-402\" class=\"wp-caption-text\">Import Screen showing Source Options<\/figcaption><\/figure>\n<p>When you click &#8220;Begin Import&#8221; Pressbooks will parse the content to be imported and provide you a summary of the content.\u00a0 This will give you some idea how well the import will work and will provide you with some options for how the import should proceed.\u00a0 Ideally the content should be broken down into chunks reflecting the chapters.<\/p>\n<p>&nbsp;<\/p>\n<figure id=\"attachment_403\" aria-describedby=\"caption-attachment-403\" style=\"width: 1024px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/pressbooks.library.ryerson.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-1024x572.png\" alt=\"\" width=\"1024\" height=\"572\" class=\"size-large wp-image-403\" srcset=\"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-1024x572.png 1024w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-300x167.png 300w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-768x429.png 768w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-1536x858.png 1536w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-65x36.png 65w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-225x126.png 225w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse-350x195.png 350w, https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-content\/uploads\/sites\/257\/2021\/08\/Import_Parse.png 1938w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption id=\"caption-attachment-403\" class=\"wp-caption-text\">Parsing of Content to be Imported into a book in Pressbooks<\/figcaption><\/figure>\n<p>You can choose which chunks of content to import and indicate where it should go in the new book.<\/p>\n<p>This example is of a problematic import as the text, <em>Frankenstein,<\/em> should consists of twenty four chapters, some letters, and a preface and what we are looking at importing here is seven &#8220;chapters&#8221; of text.\u00a0 This will require considerable clean-up if the import proceeds.\u00a0 A better idea would be to look for a cleaner version of the text.<\/p>\n<p>More detailed information about importing can be found in the <em>Pressbooks Guide<\/em> in the chapter on <a href=\"https:\/\/guide.pressbooks.com\/chapter\/tools\/#chapter-241-section-1\">Tools<\/a>.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"author":2,"menu_order":3,"template":"","meta":{"pb_show_title":"on","pb_short_title":"","pb_subtitle":"","pb_authors":[],"pb_section_license":""},"chapter-type":[48],"contributor":[],"license":[],"class_list":["post-40","chapter","type-chapter","status-publish","hentry","chapter-type-numberless"],"part":34,"_links":{"self":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/pressbooks\/v2\/chapters\/40","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/pressbooks\/v2\/chapters"}],"about":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/wp\/v2\/types\/chapter"}],"author":[{"embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/wp\/v2\/users\/2"}],"version-history":[{"count":12,"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/pressbooks\/v2\/chapters\/40\/revisions"}],"predecessor-version":[{"id":425,"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/pressbooks\/v2\/chapters\/40\/revisions\/425"}],"part":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/pressbooks\/v2\/parts\/34"}],"metadata":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/pressbooks\/v2\/chapters\/40\/metadata\/"}],"wp:attachment":[{"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/wp\/v2\/media?parent=40"}],"wp:term":[{"taxonomy":"chapter-type","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/pressbooks\/v2\/chapter-type?post=40"},{"taxonomy":"contributor","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/wp\/v2\/contributor?post=40"},{"taxonomy":"license","embeddable":true,"href":"https:\/\/pressbooks.library.torontomu.ca\/pdccguide\/wp-json\/wp\/v2\/license?post=40"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}