1# SOME DESCRIPTIVE TITLE. 2# Copyright (C) Kovid Goyal 3# This file is distributed under the same license as the calibre package. 4# 5# Translators: 6# Andreas Dreyer Hysing, 2016 7msgid "" 8msgstr "" 9"Project-Id-Version: calibre\n" 10"Report-Msgid-Bugs-To: \n" 11"POT-Creation-Date: 2021-12-16 10:49+0000\n" 12"PO-Revision-Date: 2021-12-14 10:26+0000\n" 13"Last-Translator: Kovid Goyal <kovid@kovidgoyal.net>\n" 14"Language-Team: Norwegian Bokmål (http://www.transifex.com/calibre/calibre/language/nb/)\n" 15"MIME-Version: 1.0\n" 16"Content-Type: text/plain; charset=UTF-8\n" 17"Content-Transfer-Encoding: 8bit\n" 18"Language: nb\n" 19"Plural-Forms: nplurals=2; plural=(n != 1);\n" 20 21#: ../../__w/calibre/calibre/manual/edit.rst:4 22msgid "Editing e-books" 23msgstr "" 24 25#: ../../__w/calibre/calibre/manual/edit.rst:6 26msgid "" 27"calibre has an integrated e-book editor that can be used to edit books in " 28"the EPUB and AZW3 (Kindle) formats. The editor shows you the HTML and CSS " 29"that is used internally inside the book files, with a live preview that " 30"updates as you make changes. It also contains various automated tools to " 31"perform common cleanup and fixing tasks." 32msgstr "Calibre har en integrert e-bok redigerer som kan brukes på e-bøker i EPUB og AZW3 (Kindle) formater. Editoren viser deg HTML og CSS som er i bruk inne i bokfilene. med en livevisning som oppdater mens du gjør endringer. Den kan også innholde viderse automatiserte verktøy for å utføre vanlige rydde- og reprasjonsoppgaver." 33 34#: ../../__w/calibre/calibre/manual/edit.rst:12 35msgid "" 36"You can use this editor by right clicking on any book in calibre and " 37"selecting :guilabel:`Edit book`." 38msgstr "" 39 40#: ../../__w/calibre/calibre/manual/edit.rstNone 41#: ../../__w/calibre/calibre/manual/edit.rstNone 42msgid "The Edit book tool" 43msgstr "" 44 45#: ../../__w/calibre/calibre/manual/edit.rst:23 46msgid "Contents" 47msgstr "Innhold" 48 49#: ../../__w/calibre/calibre/manual/edit.rst:26 50msgid "Basic workflow" 51msgstr "Basis arbeidsflyt" 52 53#: ../../__w/calibre/calibre/manual/edit.rst:29 54msgid "" 55"A video tour of the calibre E-book editor is available `here " 56"<https://calibre-ebook.com/demo#tutorials>`_." 57msgstr "" 58 59#: ../../__w/calibre/calibre/manual/edit.rst:32 60msgid "" 61"When you first open a book with the Edit book tool, you will be presented " 62"with a list of files on the left. These are the individual HTML files, " 63"stylesheets, images, etc. that make up the content of the book. Simply " 64"double click on a file to start editing it. Note that if you want to do " 65"anything more sophisticated than making a few small tweaks, you will need to" 66" know `HTML Tutorial <http://html.net/tutorials/html/>`_ and `CSS Tutorial " 67"<http://html.net/tutorials/css/>`_." 68msgstr "" 69 70#: ../../__w/calibre/calibre/manual/edit.rst:40 71msgid "" 72"As you make changes to the HTML or CSS in the editor, the changes will be " 73"previewed, live, in the preview panel to the right. When you are happy with " 74"how the changes you have made look, click the :guilabel:`Save` button or use" 75" :guilabel:`File->Save` to save your changes into the e-book." 76msgstr "" 77 78#: ../../__w/calibre/calibre/manual/edit.rst:45 79msgid "" 80"One useful feature is :guilabel:`Checkpoints`. Before you embark on some " 81"ambitious set of edits, you can create a checkpoint. The checkpoint will " 82"preserve the current state of your book, then if in the future you decide " 83"you don't like the changes you have made to you can go back to the state " 84"when you created the checkpoint. To create a checkpoint, use " 85":guilabel:`Edit->Create checkpoint`. Checkpoints will also be automatically " 86"created for you whenever you run any automated tool like global search and " 87"replace. The checkpointing functionality is in addition to the normal " 88"undo/redo mechanism when editing individual files. Checkpoints are useful " 89"for when changes are spread over multiple files in the book." 90msgstr "" 91 92#: ../../__w/calibre/calibre/manual/edit.rst:56 93msgid "" 94"That is the basic work flow for editing books -- Open a file, make changes, " 95"preview and save. The rest of this manual will discuss the various tools and" 96" features present to allow you to perform specific tasks efficiently." 97msgstr "" 98 99#: ../../__w/calibre/calibre/manual/edit.rst:61 100#: ../../__w/calibre/calibre/manual/edit.rstNone 101msgid "The File browser" 102msgstr "" 103 104#: ../../__w/calibre/calibre/manual/edit.rst:67 105msgid "" 106"The :guilabel:`File browser` gives you an overview of the various files " 107"inside the book you are editing. The files are arranged by category, with " 108"text (HTML) files at the top, followed by stylesheet (CSS) files, images and" 109" so on. Simply double click on a file to start editing it. Editing is " 110"supported for HTML, CSS and image files. The order of text files is the same" 111" order that they would be displayed in, if you were reading the book. All " 112"other files are arranged alphabetically." 113msgstr "" 114 115#: ../../__w/calibre/calibre/manual/edit.rst:75 116msgid "" 117"By hovering your mouse over an entry, you can see its size, and also, at the" 118" bottom of the screen, the full path to the file inside the book. Note that " 119"files inside e-books are compressed, so the size of the final book is not " 120"the sum of the individual file sizes." 121msgstr "" 122 123#: ../../__w/calibre/calibre/manual/edit.rst:80 124msgid "" 125"Many files have special meaning, in the book. These will typically have an " 126"icon next to their names, indicating the special meaning. For example, in " 127"the picture to the left, you can see that the files " 128":guilabel:`cover_image.jpg` and :guilabel:`titlepage.xhtml` have the icon of" 129" a cover next to them, this indicates they are the book cover image and " 130"titlepage. Similarly, the :guilabel:`content.opf` file has a metadata icon " 131"next to it, indicating the book metadata is present in it and the " 132":guilabel:`toc.ncx` file has a T icon next to it, indicating it is the Table" 133" of Contents." 134msgstr "" 135 136#: ../../__w/calibre/calibre/manual/edit.rst:89 137msgid "" 138"You can perform many actions on individual files, by right clicking them." 139msgstr "" 140 141#: ../../__w/calibre/calibre/manual/edit.rst:92 142msgid "Renaming files" 143msgstr "Gi filer nytt navn" 144 145#: ../../__w/calibre/calibre/manual/edit.rst:94 146msgid "" 147"You can rename an individual file by right clicking it and selecting " 148":guilabel:`Rename`. Renaming a file automatically updates all links and " 149"references to it throughout the book. So all you have to do is provide the " 150"new name, calibre will take care of the rest." 151msgstr "" 152 153#: ../../__w/calibre/calibre/manual/edit.rst:99 154msgid "" 155"You can also bulk rename many files at once. This is useful if you want the " 156"files to have some simple name pattern. For example you might want to rename" 157" all the HTML files to have names Chapter-1.html, Chapter-2.html and so on. " 158"Select the files you want bulk renamed by holding down the :kbd:`Shift` or " 159":kbd:`Ctrl` key and clicking the files. Then right click and select " 160":guilabel:`Bulk rename`. Enter a prefix and what number you would like the " 161"automatic numbering to start at, click OK and you are done. The bulk rename " 162"dialog also lets you rename files by the order they appear in the book " 163"instead of the order you selected them in, useful, for instance to rename " 164"all images by the order they appear." 165msgstr "" 166 167#: ../../__w/calibre/calibre/manual/edit.rst:110 168msgid "" 169"Finally, you can bulk change the file extension for all selected files. " 170"Select multiple files, as above, and right click and choose " 171":guilabel:`Change the file extension for the selected files`." 172msgstr "" 173 174#: ../../__w/calibre/calibre/manual/edit.rst:115 175msgid "Merging files" 176msgstr "Slå sammen filer" 177 178#: ../../__w/calibre/calibre/manual/edit.rst:117 179msgid "" 180"Sometimes, you may want to merge two HTML files or two CSS files together. " 181"It can sometimes be useful to have everything in a single file. Be wary, " 182"though, putting a lot of content into a single file will cause performance " 183"problems when viewing the book in a typical e-book reader." 184msgstr "" 185 186#: ../../__w/calibre/calibre/manual/edit.rst:122 187msgid "" 188"To merge multiple files together, select them by holding the :kbd:`Ctrl` key" 189" and clicking on them (make sure you only select files of one type, either " 190"all HTML files or all CSS files and so on). Then right click and select " 191"merge. That's all, calibre will merge the files, automatically taking care " 192"of migrating all links and references to the merged files. Note that merging" 193" files can sometimes cause text styling to change, since the individual " 194"files could have used different stylesheets." 195msgstr "" 196 197#: ../../__w/calibre/calibre/manual/edit.rst:130 198msgid "" 199"You can also select text files and then drag and drop the text files onto " 200"another text file to merge the dropped text files into the target text file." 201msgstr "" 202 203#: ../../__w/calibre/calibre/manual/edit.rst:134 204msgid "Changing text file order" 205msgstr "" 206 207#: ../../__w/calibre/calibre/manual/edit.rst:136 208msgid "" 209"You can re-arrange the order in which text (HTML) files are opened when " 210"reading the book by simply dragging and dropping them in the Files browser. " 211"For the technically inclined, this is called re-ordering the book spine. " 212"Note that you have to drop the items *between* other items, not on top of " 213"them, this can be a little fiddly until you get used to it. Dropping on top " 214"of another file will cause the files to be merged." 215msgstr "" 216 217#: ../../__w/calibre/calibre/manual/edit.rst:144 218msgid "Marking the cover" 219msgstr "" 220 221#: ../../__w/calibre/calibre/manual/edit.rst:146 222msgid "" 223"E-books typically have a cover image. This image is indicated in the " 224":guilabel:`File browser` by the icon of a brown book next to the image name." 225" If you want to designate some other image as the cover, you can do so by " 226"right clicking on the file and choosing :guilabel:`Mark as cover`." 227msgstr "" 228 229#: ../../__w/calibre/calibre/manual/edit.rst:151 230msgid "" 231"In addition, EPUB files has the concept of a *titlepage*. A title page is a " 232"HTML file that acts as the title page/cover for the book. You can mark an " 233"HTML file as the titlepage when editing EPUBs by right-clicking. Be careful " 234"that the file you mark contains only the cover information. If it contains " 235"other content, such as the first chapter, then that content will be lost if " 236"the user ever converts the EPUB file in calibre to another format. This is " 237"because when converting, calibre assumes that the marked title page contains" 238" only the cover and no other content." 239msgstr "" 240 241#: ../../__w/calibre/calibre/manual/edit.rst:161 242msgid "Deleting files" 243msgstr "Sletter filer" 244 245#: ../../__w/calibre/calibre/manual/edit.rst:163 246msgid "" 247"You can delete files by either right clicking on them or by selecting them " 248"and pressing the Delete key. Deleting a file removes all references to the " 249"file from the OPF file, saving you that chore. However, references in other " 250"places are not removed, you can use the Check Book tool to easily find and " 251"remove/replace them." 252msgstr "" 253 254#: ../../__w/calibre/calibre/manual/edit.rst:170 255msgid "Exporting files" 256msgstr "" 257 258#: ../../__w/calibre/calibre/manual/edit.rst:172 259msgid "" 260"You can export a file from inside the book to somewhere else on your " 261"computer. This is useful if you want to work on the file in isolation, with " 262"specialised tools. To do this, simply right click on the file and choose " 263":guilabel:`Export`." 264msgstr "" 265 266#: ../../__w/calibre/calibre/manual/edit.rst:177 267msgid "" 268"Once you are done working on the exported file, you can re-import it into " 269"the book, by right clicking on the file again and choosing " 270":guilabel:`Replace with file...` which will allow you to replace the file in" 271" the book with the previously exported file." 272msgstr "" 273 274#: ../../__w/calibre/calibre/manual/edit.rst:182 275msgid "" 276"You can also copy files between multiple editor instances. Select the files " 277"you want to copy in the :guilabel:`File browser`, then right click and " 278"choose, :guilabel:`Copy selected files to another editor instance`. Then, in" 279" the other editor instance, right click in the :guilabel:`File browser` and " 280"choose :guilabel:`Paste file from other editor instance`." 281msgstr "" 282 283#: ../../__w/calibre/calibre/manual/edit.rst:189 284msgid "Adding new images/fonts/etc. or creating new blank files" 285msgstr "" 286 287#: ../../__w/calibre/calibre/manual/edit.rst:191 288msgid "" 289"You can add a new image, font, stylesheet, etc. from your computer into the " 290"book by clicking :guilabel:`File->New file`. This lets you either import a " 291"file by clicking the :guilabel:`Import resource file` button or create a new" 292" blank HTML file or stylesheet by simply entering the file name into the box" 293" for the new file." 294msgstr "" 295 296#: ../../__w/calibre/calibre/manual/edit.rst:196 297msgid "" 298"You can also import multiple files into the book at once using File->Import " 299"files into book." 300msgstr "" 301 302#: ../../__w/calibre/calibre/manual/edit.rst:200 303msgid "Replacing files" 304msgstr "Erstatter filer" 305 306#: ../../__w/calibre/calibre/manual/edit.rst:202 307msgid "" 308"You can easily replace existing files in the book, by right clicking on the " 309"file and choosing replace. This will automatically update all links and " 310"references, in case the replacement file has a different name than the file " 311"being replaced." 312msgstr "" 313 314#: ../../__w/calibre/calibre/manual/edit.rst:208 315msgid "Linking stylesheets to HTML files efficiently" 316msgstr "" 317 318#: ../../__w/calibre/calibre/manual/edit.rst:210 319msgid "" 320"As a convenience, you can select multiple HTML files in the File browser, " 321"right click and choose Link stylesheets to have calibre automatically insert" 322" the <link> tags for those stylesheets into all the selected HTML files." 323msgstr "" 324 325#: ../../__w/calibre/calibre/manual/edit.rst:220 326msgid "Search & replace" 327msgstr "" 328 329#: ../../__w/calibre/calibre/manual/edit.rst:222 330msgid "" 331"Edit book has a very powerful search and replace interface that allows you " 332"to search and replace text in the current file, across all files and even in" 333" a marked region of the current file. You can search using a normal search " 334"or using regular expressions. To learn how to use regular expressions for " 335"advanced searching, see :ref:`regexptutorial`." 336msgstr "" 337 338#: ../../__w/calibre/calibre/manual/edit.rst:232 339msgid "" 340"Start the search and replace via the :guilabel:`Search->Find/replace` menu " 341"entry (you must be editing an HTML or CSS file)." 342msgstr "" 343 344#: ../../__w/calibre/calibre/manual/edit.rst:235 345msgid "" 346"Type the text you want to find into the Find box and its replacement into " 347"the Replace box. You can the click the appropriate buttons to Find the next " 348"match, replace the current match and replace all matches." 349msgstr "" 350 351#: ../../__w/calibre/calibre/manual/edit.rst:239 352msgid "" 353"Using the drop downs at the bottom of the box, you can have the search " 354"operate over the current file, all text files, all style files or all files." 355" You can also choose the search mode to be a normal (string) search or a " 356"regular expression search." 357msgstr "" 358 359#: ../../__w/calibre/calibre/manual/edit.rst:244 360msgid "" 361"You can count all the matches for a search expression via " 362":guilabel:`Search->Count all`. The count will run over whatever " 363"files/regions you have selected in the dropdown box." 364msgstr "" 365 366#: ../../__w/calibre/calibre/manual/edit.rst:248 367msgid "" 368"You can also go to a specific line in the currently open editor via " 369":guilabel:`Search->Go to line`." 370msgstr "" 371 372#: ../../__w/calibre/calibre/manual/edit.rst:252 373msgid "" 374"Remember, to harness the full power of search and replace, you will need to " 375"use regular expressions. See :ref:`regexptutorial`." 376msgstr "" 377 378#: ../../__w/calibre/calibre/manual/edit.rst:256 379msgid "Saved searches" 380msgstr "Lagrete søk" 381 382#: ../../__w/calibre/calibre/manual/edit.rst:258 383msgid "" 384"You can save frequently used search/replace expressions (including function " 385"mode expressions) and reuse them multiple times. To save a search simply " 386"right click in the Find box and select :guilabel:`Save current search`." 387msgstr "" 388 389#: ../../__w/calibre/calibre/manual/edit.rst:262 390msgid "" 391"You can bring up the saved searches via :guilabel:`Search->Saved searches`. " 392"This will present you with a list of search and replace expressions that you" 393" can apply. You can even select multiple entries in the list by holding down" 394" the :kbd:`Ctrl` key while clicking so as to run multiple search and replace" 395" expressions in a single operation." 396msgstr "" 397 398#: ../../__w/calibre/calibre/manual/edit.rst:269 399msgid "Function mode" 400msgstr "" 401 402#: ../../__w/calibre/calibre/manual/edit.rst:271 403msgid "" 404"Function mode allows you to write arbitrarily powerful Python functions that" 405" are run on every Find/replace. You can do pretty much any text manipulation" 406" you like in function mode. For more information, see :doc:`function_mode`." 407msgstr "" 408 409#: ../../__w/calibre/calibre/manual/edit.rst:276 410msgid "Search ignoring HTML tags" 411msgstr "" 412 413#: ../../__w/calibre/calibre/manual/edit.rst:278 414msgid "" 415"There is also a dedicated tool for searching for text, ignoring any HTML " 416"tags in between. For example, if the book has the HTML ``Empahisis on a " 417"<i>word</i>.`` you can search for ``on a word`` and it will be found even " 418"though there is an ``<i>`` tag in the middle. Use this tool via the " 419":guilabel:`Search->Search ignoring HTML markup` menu item." 420msgstr "" 421 422#: ../../__w/calibre/calibre/manual/edit.rst:285 423msgid "Automated tools" 424msgstr "" 425 426#: ../../__w/calibre/calibre/manual/edit.rst:287 427msgid "" 428"Edit book has various tools to help with common tasks. These are accessed " 429"via the :guilabel:`Tools` menu." 430msgstr "" 431 432#: ../../__w/calibre/calibre/manual/edit.rst:291 433msgid "Editing the Table of Contents" 434msgstr "" 435 436#: ../../__w/calibre/calibre/manual/edit.rst:293 437msgid "" 438"There is a dedicated tool to ease editing of the Table of Contents. Launch " 439"it with :guilabel:`Tools->Table of Contents->Edit Table of Contents`." 440msgstr "" 441 442#: ../../__w/calibre/calibre/manual/edit.rstNone 443msgid "The Edit Table of Contents tool" 444msgstr "" 445 446#: ../../__w/calibre/calibre/manual/edit.rst:300 447msgid "" 448"The Edit Table of Contents tool shows you the current Table of Contents (if " 449"any) on the left. Simply double click on any entry to change its text. You " 450"can also re-arrange entries by drag and drop or by using the buttons to the " 451"right." 452msgstr "" 453 454#: ../../__w/calibre/calibre/manual/edit.rst:304 455msgid "" 456"For books that do not have a pre-existing Table of Contents, the tool gives " 457"you various options to auto-generate a Table of Contents from the text. You " 458"can generate from the headings in the document, from links, from individual " 459"files and so on." 460msgstr "" 461 462#: ../../__w/calibre/calibre/manual/edit.rst:309 463msgid "" 464"You can edit individual entries by clicking on them and then clicking the " 465":guilabel:`Change the location this entry points to` button. This will open " 466"up a mini-preview of the book, simply move the mouse cursor over the book " 467"view panel, and click where you want the entry to point to. A thick green " 468"line will show you the location. Click OK once you are happy with the " 469"location." 470msgstr "" 471 472#: ../../__w/calibre/calibre/manual/edit.rstNone 473msgid "" 474"The Edit Table of Contents tool, how to change the location an entry points " 475"to" 476msgstr "" 477 478#: ../../__w/calibre/calibre/manual/edit.rst:320 479msgid "Checking the book" 480msgstr "" 481 482#: ../../__w/calibre/calibre/manual/edit.rst:322 483msgid "" 484"The :guilabel:`Check book` tool searches your book for problems that could " 485"prevent it working as intended on actual reader devices. Activate it via " 486":guilabel:`Tools->Check book`." 487msgstr "" 488 489#: ../../__w/calibre/calibre/manual/edit.rstNone 490msgid "The Check book tool" 491msgstr "" 492 493#: ../../__w/calibre/calibre/manual/edit.rst:330 494msgid "" 495"Any problems found are reported in a nice, easy to use list. Clicking any " 496"entry in the list shows you some help about that error as well as giving you" 497" the option to auto-fix that error, if the error can be fixed automatically." 498" You can also double click the error to open the location of the error in an" 499" editor, so you can fix it yourself." 500msgstr "" 501 502#: ../../__w/calibre/calibre/manual/edit.rst:337 503msgid "Some of the checks performed are:" 504msgstr "" 505 506#: ../../__w/calibre/calibre/manual/edit.rst:339 507msgid "" 508"Malformed HTML markup. Any HTML markup that does not parse as well-formed " 509"XML is reported. Correcting it will ensure that your markup works as " 510"intended in all contexts. calibre can also auto-fix these errors, but auto-" 511"fixing can sometimes have unexpected effects, so use with care. As always, a" 512" checkpoint is created before auto-fixing so you can easily revert all " 513"changes. Auto-fixing works by parsing the markup using the HTML5 algorithm, " 514"which is highly fault tolerant and then converting to well formed XML." 515msgstr "" 516 517#: ../../__w/calibre/calibre/manual/edit.rst:348 518msgid "" 519"Malformed or unknown CSS styles. Any CSS that is not valid or that has " 520"properties not defined in the CSS 2.1 standard (plus a few from CSS 3) are " 521"reported. CSS is checked in all stylesheets, inline style attributes and " 522"<style> tags in HTML files." 523msgstr "" 524 525#: ../../__w/calibre/calibre/manual/edit.rst:353 526msgid "" 527"Broken links. Links that point to files inside the book that are missing are" 528" reported." 529msgstr "" 530 531#: ../../__w/calibre/calibre/manual/edit.rst:356 532msgid "" 533"Unreferenced files. Files in the book that are not referenced by any other " 534"file or are not in the spine are reported." 535msgstr "" 536 537#: ../../__w/calibre/calibre/manual/edit.rst:359 538msgid "" 539"Various common problems in OPF files such as duplicate spine or manifest " 540"items, broken idrefs or meta cover tags, missing required sections and so " 541"on." 542msgstr "" 543 544#: ../../__w/calibre/calibre/manual/edit.rst:363 545msgid "" 546"Various compatibility checks for known problems that can cause the book to " 547"malfunction on reader devices." 548msgstr "" 549 550#: ../../__w/calibre/calibre/manual/edit.rst:367 551msgid "Adding a cover" 552msgstr "" 553 554#: ../../__w/calibre/calibre/manual/edit.rst:369 555msgid "" 556"You can easily add a cover to the book via :guilabel:`Tools->Add cover`. " 557"This allows you to either choose an existing image in the book as the cover " 558"or import a new image into the book and make it the cover. When editing EPUB" 559" files, the HTML wrapper for the cover is automatically generated. If an " 560"existing cover in the book is found, it is replaced. The tool also " 561"automatically takes care of correctly marking the cover files as covers in " 562"the OPF." 563msgstr "" 564 565#: ../../__w/calibre/calibre/manual/edit.rst:378 566msgid "Embedding referenced fonts" 567msgstr "" 568 569#: ../../__w/calibre/calibre/manual/edit.rst:380 570msgid "" 571"Accessed via :guilabel:`Tools->Embed reference fonts`, this tool finds all " 572"fonts referenced in the book and if they are not already embedded, searches " 573"your computer for them and embeds them into the book, if found. Please make " 574"sure that you have the necessary copyrights for embedding commercially " 575"licensed fonts, before doing this." 576msgstr "" 577 578#: ../../__w/calibre/calibre/manual/edit.rst:387 579msgid "Subsetting embedded fonts" 580msgstr "" 581 582#: ../../__w/calibre/calibre/manual/edit.rst:389 583msgid "" 584"Accessed via :guilabel:`Tools->Subset embedded fonts`, this tool reduces all" 585" the fonts in the book to only contain glyphs for the text actually present " 586"in the book. This commonly reduces the size of the font files by ~ 50%. " 587"However, be aware that once the fonts are subset, if you add new text whose " 588"characters are not previously present in the subset font, the font will not " 589"work for the new text. So do this only as the last step in your workflow." 590msgstr "" 591 592#: ../../__w/calibre/calibre/manual/edit.rst:397 593msgid "Smartening punctuation" 594msgstr "" 595 596#: ../../__w/calibre/calibre/manual/edit.rst:399 597msgid "" 598"Convert plain text dashes, ellipsis, quotes, multiple hyphens, etc. into " 599"their typographically correct equivalents. Note that the algorithm can " 600"sometimes generate incorrect results, especially when single quotes at the " 601"start of contractions are involved. Accessed via :guilabel:`Tools->Smarten " 602"punctuation`." 603msgstr "" 604 605#: ../../__w/calibre/calibre/manual/edit.rst:406 606msgid "Transforming CSS properties" 607msgstr "" 608 609#: ../../__w/calibre/calibre/manual/edit.rst:408 610msgid "" 611"Create rules to transform the styling of the book. For example, create a " 612"rule to convert all red text to green or to double the font size of all text" 613" in the book or make text of a certain font family italic, etc." 614msgstr "" 615 616#: ../../__w/calibre/calibre/manual/edit.rst:412 617msgid "" 618"Creating the rules is simple, the rules follow a natural language format, " 619"that looks like:" 620msgstr "" 621 622#: ../../__w/calibre/calibre/manual/edit.rst:415 623msgid "If the property *color* is *red* *change* it to *green*" 624msgstr "" 625 626#: ../../__w/calibre/calibre/manual/edit.rst:416 627msgid "If the property *font-size* is *any value* *multiply* the value by *2*" 628msgstr "" 629 630#: ../../__w/calibre/calibre/manual/edit.rst:418 631msgid "Accessed via :guilabel:`Tools->Transform styles`." 632msgstr "" 633 634#: ../../__w/calibre/calibre/manual/edit.rst:421 635msgid "Removing unused CSS rules" 636msgstr "" 637 638#: ../../__w/calibre/calibre/manual/edit.rst:423 639msgid "" 640"Remove all unused CSS rules from stylesheets and <style> tags. Some books " 641"created from production templates can have a large number of extra CSS rules" 642" that don't match any actual content. These extra rules can slow down " 643"readers that need to process them all. Accessed via :guilabel:`Tools->Remove" 644" unused CSS`." 645msgstr "" 646 647#: ../../__w/calibre/calibre/manual/edit.rst:430 648msgid "Fixing HTML" 649msgstr "" 650 651#: ../../__w/calibre/calibre/manual/edit.rst:432 652msgid "" 653"This tool simply converts HTML that cannot be parsed as XML into well-formed" 654" XML. It is very common in e-books to have non-well-formed XML, so this tool" 655" simply automates the process of fixing such HTML. The tool works by parsing" 656" the HTML using the HTML5 algorithm (the algorithm used in all modern " 657"browsers) and then converting the result into XML. Be aware that auto-fixing" 658" can sometimes have counter-intuitive results. If you prefer, you can use " 659"the Check Book tool discussed above to find and manually correct problems in" 660" the HTML. Accessed via :guilabel:`Tools->Fix HTML`." 661msgstr "" 662 663#: ../../__w/calibre/calibre/manual/edit.rst:442 664msgid "Beautifying files" 665msgstr "" 666 667#: ../../__w/calibre/calibre/manual/edit.rst:444 668msgid "" 669"This tool is used to auto-format all HTML and CSS files so that they \"look " 670"pretty\". The code is auto-indented so that it lines up nicely, blank lines " 671"are inserted where appropriate and so on. Note that beautifying also auto-" 672"fixes broken HTML/CSS. Therefore, if you don't want any auto-fixing to be " 673"performed, first use the Check Book tool to correct all problems and only " 674"then run beautify. Accessed via :guilabel:`Tools->Beautify all files`." 675msgstr "" 676 677#: ../../__w/calibre/calibre/manual/edit.rst:452 678msgid "" 679"In HTML any text can have significant whitespace, via the CSS white-space " 680"directive. Therefore, beautification could potentially change the rendering " 681"of the HTML. To avoid this as far as possible, the beautify algorithm only " 682"beautifies block level tags that contain other block level tags. So, for " 683"example, text inside a <p> tag will not have its whitespace changed. But a " 684"<body> tag that contains only other <p> and <div> tags will be beautified. " 685"This can sometimes mean that a particular file will not be affected by " 686"beautify as it has no suitable block level tags. In such cases you can try " 687"different beautification tools, that are less careful, for example: `HTML " 688"Tidy <https://infohound.net/tidy/>`_." 689msgstr "" 690 691#: ../../__w/calibre/calibre/manual/edit.rst:465 692msgid "Inserting an inline Table of Contents" 693msgstr "" 694 695#: ../../__w/calibre/calibre/manual/edit.rst:467 696msgid "" 697"Normally in e-books, the Table of Contents is separate from the main text " 698"and is typically accessed via a special Table of Contents button/menu in the" 699" e-book reading device. You can also have calibre automatically generate an " 700"*inline* Table of Contents that becomes part of the text of the book. It is " 701"generated based on the currently defined Table of Contents." 702msgstr "" 703 704#: ../../__w/calibre/calibre/manual/edit.rst:473 705msgid "" 706"If you use this tool multiple times, each invocation will cause the " 707"previously created inline Table of Contents to be replaced. The tool can be " 708"accessed via :guilabel:`Tools->Table of Contents->Insert inline Table of " 709"Contents`." 710msgstr "" 711 712#: ../../__w/calibre/calibre/manual/edit.rst:478 713msgid "Setting Semantics" 714msgstr "" 715 716#: ../../__w/calibre/calibre/manual/edit.rst:480 717msgid "" 718"This tool is used to set *semantics* in EPUB files. Semantics are simply, " 719"links in the OPF file that identify certain locations in the book as having " 720"special meaning. You can use them to identify the foreword, dedication, " 721"cover, table of contents, etc. Simply choose the type of semantic " 722"information you want to specify and then select the location in the book the" 723" link should point to. This tool can be accessed via :guilabel:`Tools->Set " 724"semantics`." 725msgstr "" 726 727#: ../../__w/calibre/calibre/manual/edit.rst:488 728msgid "Filtering style information" 729msgstr "" 730 731#: ../../__w/calibre/calibre/manual/edit.rst:490 732msgid "" 733"This tool can be used to easily remove specified CSS style properties from " 734"the entire book. You can tell it what properties you want removed, for " 735"example, ``color, background-color, line-height`` and it will remove them " 736"from everywhere they occur --- stylesheets, ``<style>`` tags and inline " 737"``style`` attributes. After removing the style information, a summary of all" 738" the changes made is displayed so you can see exactly what was changed. The " 739"tool can be accessed via :guilabel:`Tools->Filter style information`." 740msgstr "" 741 742#: ../../__w/calibre/calibre/manual/edit.rst:500 743msgid "Upgrading the book's internals" 744msgstr "" 745 746#: ../../__w/calibre/calibre/manual/edit.rst:502 747msgid "" 748"This tool can be used to upgrade the book's internals, if possible. For " 749"instance it will upgrade EPUB 2 books to EPUB 3 books. The tool can be " 750"accessed via :guilabel:`Upgrade book internals`." 751msgstr "" 752 753#: ../../__w/calibre/calibre/manual/edit.rst:509 754msgid "Checkpoints" 755msgstr "" 756 757#: ../../__w/calibre/calibre/manual/edit.rst:511 758msgid "" 759":guilabel:`Checkpoints` are a way to mark the current state of the book as " 760"\"special\". You can then go on to do whatever changes you want to the book " 761"and if you don't like the results, return to the checkpointed state. " 762"Checkpoints are automatically created every time you run any of the " 763"automated tools described in the previous section." 764msgstr "" 765 766#: ../../__w/calibre/calibre/manual/edit.rst:517 767msgid "" 768"You can create a checkpoint via :guilabel:`Edit->Create checkpoint`. And go " 769"back to a previous checkpoint with :guilabel:`Edit->Revert to ...`" 770msgstr "" 771 772#: ../../__w/calibre/calibre/manual/edit.rst:520 773msgid "" 774"The check pointing functionality is in addition to the normal Undo/redo " 775"mechanism when editing individual files. Checkpoints are particularly useful" 776" for when changes are spread over multiple files in the book or when you " 777"wish to be able to revert a large group of related changes as a whole." 778msgstr "" 779 780#: ../../__w/calibre/calibre/manual/edit.rst:525 781msgid "" 782"You can see a list of available checkpoints via " 783":guilabel:`View->Checkpoints`. You can compare the current state of the book" 784" to a specified checkpoint using the :ref:`diff` tool -- by selecting the " 785"checkpoint of interest and clicking the :guilabel:`Compare` button. The " 786":guilabel:`Revert to` button restores the book to the selected checkpoint, " 787"undoing all changes since that checkpoint was created." 788msgstr "" 789 790#: ../../__w/calibre/calibre/manual/edit.rst:533 791#: ../../__w/calibre/calibre/manual/edit.rstNone 792msgid "The Live preview panel" 793msgstr "" 794 795#: ../../__w/calibre/calibre/manual/edit.rst:539 796msgid "" 797"The :guilabel:`File preview` gives you an overview of the various files " 798"inside The live preview panel shows you the changes you are making live " 799"(with a second or two of delay). As you edit HTML or CSS files, the preview " 800"panel is updated automatically to reflect your changes. As you move the " 801"cursor around in the editor, the preview panel will track its location, " 802"showing you the corresponding location in the book. Clicking in the preview " 803"panel, will cause the cursor in the editor to be positioned over the element" 804" you clicked. If you click a link pointing to another file in the book, that" 805" file will be opened in the edit and the preview panel, automatically." 806msgstr "" 807 808#: ../../__w/calibre/calibre/manual/edit.rst:549 809msgid "" 810"You can turn off the automatic syncing of position and live preview of " 811"changes -- by buttons under the preview panel. The live update of the " 812"preview panel only happens when you are not actively typing in the editor, " 813"so as not to be distracting or slow you down, waiting for the preview to " 814"render." 815msgstr "" 816 817#: ../../__w/calibre/calibre/manual/edit.rst:554 818msgid "" 819"The preview panel shows you how the text will look when viewed. However, the" 820" preview panel is not a substitute for actually testing your book an actual " 821"reader device. It is both more, and less capable than an actual reader. It " 822"will tolerate errors and sloppy markup much better than most reader devices." 823" It will also not show you page margins, page breaks and embedded fonts that" 824" use font name aliasing. Use the preview panel while you are working on the " 825"book, but once you are done, review it in an actual reader device or " 826"software emulator." 827msgstr "" 828 829#: ../../__w/calibre/calibre/manual/edit.rst:563 830msgid "" 831"The preview panel does not support embedded fonts if the name of the font " 832"inside the font file does not match the name in the CSS @font-face rule. You" 833" can use the Check Book tool to quickly find and fix any such problem fonts." 834msgstr "" 835 836#: ../../__w/calibre/calibre/manual/edit.rst:569 837msgid "Splitting HTML files" 838msgstr "" 839 840#: ../../__w/calibre/calibre/manual/edit.rst:571 841#: ../../__w/calibre/calibre/manual/edit.rst:571 842msgid "spmb" 843msgstr "" 844 845#: ../../__w/calibre/calibre/manual/edit.rst:573 846msgid "" 847"One, perhaps non-obvious, use of the preview panel is to split long HTML " 848"files. While viewing the file you want to split, click the :guilabel:`Split " 849"mode` button under the preview panel |spmb|. Then simply move your mouse to " 850"the place where you want to split the file and click. A thick green line " 851"will show you exactly where the split will happen as you move your mouse. " 852"Once you have found the location you want, simply click and the split will " 853"be performed." 854msgstr "" 855 856#: ../../__w/calibre/calibre/manual/edit.rst:580 857msgid "" 858"Splitting the file will automatically update all links and references that " 859"pointed into the bottom half of the file and will open the newly split file " 860"in an editor." 861msgstr "" 862 863#: ../../__w/calibre/calibre/manual/edit.rst:584 864msgid "" 865"You can also split a single HTML file at multiple locations automatically, " 866"by right clicking inside the file in the editor and choosing " 867":guilabel:`Split at multiple locations`. This will allow you to easily split" 868" a large file at all heading tags or all tags having a certain class and so " 869"on." 870msgstr "" 871 872#: ../../__w/calibre/calibre/manual/edit.rst:594 873#: ../../__w/calibre/calibre/manual/edit.rstNone 874msgid "The Live CSS panel" 875msgstr "" 876 877#: ../../__w/calibre/calibre/manual/edit.rst:601 878msgid "" 879"The :guilabel:`Live CSS` panel shows you all the style rules that apply to " 880"the tag you are currently editing. The name of tag, along with its line " 881"number in the editor are displayed, followed by a list of matching style " 882"rules." 883msgstr "" 884 885#: ../../__w/calibre/calibre/manual/edit.rst:605 886msgid "" 887"It is a great way to quickly see which style rules apply to any tag. The " 888"view also has clickable links (in blue), which take you directly to the " 889"location where the style was defined, in case you wish to make any changes " 890"to the style rules. Style rules that apply directly to the tag, as well as " 891"rules that are inherited from parent tags are shown." 892msgstr "" 893 894#: ../../__w/calibre/calibre/manual/edit.rst:611 895msgid "" 896"The panel also shows you what the finally calculated styles for the tag are." 897" Properties in the list that are superseded by higher priority rules are " 898"shown with a line through them." 899msgstr "" 900 901#: ../../__w/calibre/calibre/manual/edit.rst:615 902msgid "You can enable the Live CSS panel via :guilabel:`View->Live CSS`." 903msgstr "" 904 905#: ../../__w/calibre/calibre/manual/edit.rst:622 906msgid "Miscellaneous tools" 907msgstr "" 908 909#: ../../__w/calibre/calibre/manual/edit.rst:624 910msgid "There are a few more tools that can be useful while you edit the book." 911msgstr "" 912 913#: ../../__w/calibre/calibre/manual/edit.rst:627 914msgid "The Table of Contents view" 915msgstr "" 916 917#: ../../__w/calibre/calibre/manual/edit.rst:629 918msgid "" 919"The Table of Contents view shows you the current table of contents in the " 920"book. Double clicking on any entry opens the place that entry points to in " 921"an editor. You can right click to edit the Table of Contents, refresh the " 922"view or expand/collapse all items. Access this view via " 923":guilabel:`View->Table of Contents`." 924msgstr "" 925 926#: ../../__w/calibre/calibre/manual/edit.rst:636 927msgid "Checking the spelling of words in the book" 928msgstr "" 929 930#: ../../__w/calibre/calibre/manual/edit.rst:638 931msgid "You can run a spelling checker via :guilabel:`Tools->Check spelling`." 932msgstr "" 933 934#: ../../__w/calibre/calibre/manual/edit.rstNone 935msgid "The Check spelling tool" 936msgstr "" 937 938#: ../../__w/calibre/calibre/manual/edit.rst:645 939msgid "" 940"Words are shown with the number of times they occur in the book and the " 941"language the word belongs to. Language information is taken from the books " 942"metadata and from ``lang`` attributes in the HTML files. This allows the " 943"spell checker to work well even with books that contain text in multiple " 944"languages. For example, in the following HTML extract, the word color will " 945"be checked using American English and the word colour using British " 946"English::" 947msgstr "" 948 949#: ../../__w/calibre/calibre/manual/edit.rst:655 950msgid "" 951"You can double click a word to highlight the next occurrence of that word in" 952" the editor. This is useful if you wish to manually edit the word, or see " 953"what context it is in." 954msgstr "" 955 956#: ../../__w/calibre/calibre/manual/edit.rst:659 957msgid "" 958"To change a word, simply double click one of the suggested alternative " 959"spellings on the right, or type in your own corrected spelling and click the" 960" :guilabel:`Change selected word to` button. This will replace all " 961"occurrences of the word in the book. You can also right click on a word in " 962"the main word list to change the word conveniently from the right click " 963"menu." 964msgstr "" 965 966#: ../../__w/calibre/calibre/manual/edit.rst:665 967msgid "" 968"You can have the spelling checker ignore a word for the current session by " 969"clicking the :guilabel:`Ignore` button. You can also add a word to the user " 970"dictionary by clicking the :guilabel:`Add to dictionary` button. The " 971"spelling checker supports multiple user dictionaries, so you can select the " 972"dictionary you want the word added to." 973msgstr "" 974 975#: ../../__w/calibre/calibre/manual/edit.rst:671 976msgid "" 977"You can also have the spelling checker display all the words in your book, " 978"not just the incorrectly spelled ones. This is useful to see what words are " 979"most common in your book and to run a simple search and replace on " 980"individual words." 981msgstr "" 982 983#: ../../__w/calibre/calibre/manual/edit.rst:676 984msgid "" 985"If you make any changes to the book by editing files while the spell check " 986"tool is open, you should click the :guilabel:`Refresh` button in the Spell " 987"check tool. If you do not do this and continue to use the Spell check tool, " 988"you could lose the changes you have made in the editor." 989msgstr "" 990 991#: ../../__w/calibre/calibre/manual/edit.rst:682 992msgid "" 993"To exclude an individual file from being spell checked when running the " 994"spell check tool, you can add the following comment just under the first " 995"opening tag in the file::" 996msgstr "" 997 998#: ../../__w/calibre/calibre/manual/edit.rst:690 999msgid "Adding new dictionaries" 1000msgstr "" 1001 1002#: ../../__w/calibre/calibre/manual/edit.rst:692 1003msgid "" 1004"The spelling checker comes with builtin dictionaries for the English and " 1005"Spanish languages. You can install your own dictionaries via " 1006":guilabel:`Preferences->Editor->Manage spelling dictionaries`. The spell " 1007"checker can use dictionaries from the LibreOffice program (in the .oxt " 1008"format). You can download these dictionaries from `The LibreOffice " 1009"Extensions repository <https://extensions.libreoffice.org/?Tags%5B%5D=50>`_." 1010msgstr "" 1011 1012#: ../../__w/calibre/calibre/manual/edit.rst:701 1013msgid "Inserting special characters" 1014msgstr "" 1015 1016#: ../../__w/calibre/calibre/manual/edit.rst:703 1017msgid "" 1018"You can insert characters that are difficult to type by using the " 1019":guilabel:`Edit->Insert special character` tool. This shows you all Unicode " 1020"characters, simply click on the character you want to type. If you hold " 1021":kbd:`Ctrl` while clicking, the window will close itself after inserting the" 1022" selected character. This tool can be used to insert special characters into" 1023" the main text or into any other area of the user interface, such as the " 1024"Search and replace tool." 1025msgstr "" 1026 1027#: ../../__w/calibre/calibre/manual/edit.rst:711 1028msgid "" 1029"Because there are a lot of characters, you can define your own " 1030":guilabel:`Favorite` characters, that will be shown first. Simply right " 1031"click on a character to mark it as favorite. You can also right click on a " 1032"character in favorites to remove it from favorites. Finally, you can re-" 1033"arrange the order of characters in favorites by clicking the :guilabel:`Re-" 1034"arrange favorites` button and then drag and dropping the characters in " 1035"favorites around." 1036msgstr "" 1037 1038#: ../../__w/calibre/calibre/manual/edit.rst:718 1039msgid "" 1040"You can also directly type in special characters using the keyboard. To do " 1041"this, you type the Unicode code for the character (in hexadecimal) and then " 1042"press the :kbd:`Alt+X` key which will convert the previously typed code into" 1043" the corresponding character. For example, to type ÿ you would type ff and " 1044"then :kbd:`Alt+X`. To type a non-breaking space you would use a0 and then " 1045":kbd:`Alt+X`, to type the horizontal ellipsis you would use 2026 and " 1046":kbd:`Alt+X` and so on." 1047msgstr "" 1048 1049#: ../../__w/calibre/calibre/manual/edit.rst:726 1050msgid "" 1051"Finally, you can type in special characters by using HTML named entities. " 1052"For example, typing will be replaced by a non breaking space when you" 1053" type the semi-colon. The replacement happens only when typing the semi-" 1054"colon." 1055msgstr "" 1056 1057#: ../../__w/calibre/calibre/manual/edit.rst:731 1058msgid "The code inspector view" 1059msgstr "" 1060 1061#: ../../__w/calibre/calibre/manual/edit.rst:733 1062msgid "" 1063"This view shows you the HTML coding and CSS that applies to the current " 1064"element of interest. You open it by right clicking a location in the preview" 1065" panel and choosing :guilabel:`Inspect`. It allows you to see the HTML " 1066"coding for that element and more importantly, the CSS styles that apply to " 1067"it. You can even dynamically edit the styles and see what effect your " 1068"changes have instantly. Note that editing the styles does not actually make " 1069"changes to the book contents, it only allows for quick experimentation. The " 1070"ability to live edit inside the Inspector is under development." 1071msgstr "" 1072 1073#: ../../__w/calibre/calibre/manual/edit.rst:743 1074msgid "Checking external links" 1075msgstr "" 1076 1077#: ../../__w/calibre/calibre/manual/edit.rst:745 1078msgid "" 1079"You can use this tool to check all links in your book that point to external" 1080" websites. The tool will try to visit every externally linked website, and " 1081"if the visit fails, it will report all broken links in a convenient format " 1082"for you to fix." 1083msgstr "" 1084 1085#: ../../__w/calibre/calibre/manual/edit.rst:752 1086msgid "Downloading external resources" 1087msgstr "" 1088 1089#: ../../__w/calibre/calibre/manual/edit.rst:754 1090msgid "" 1091"You can use this tool to automatically download any images/stylesheets/etc. " 1092"in the book that are not bundled with the book (i.e. they have URLs pointing" 1093" to a location on the internet). The tool will find all such resources and " 1094"automatically download them, add them to the book and replace all references" 1095" to them to use the downloaded files." 1096msgstr "" 1097 1098#: ../../__w/calibre/calibre/manual/edit.rst:762 1099msgid "Arranging files into folders by type" 1100msgstr "" 1101 1102#: ../../__w/calibre/calibre/manual/edit.rst:764 1103msgid "" 1104"Often when editing EPUB files that you get from somewhere, you will find " 1105"that the files inside the EPUB are arranged haphazardly, in different sub-" 1106"folders. This tool allows you to automatically move all files into sub-" 1107"folders based on their types. Access it via :guilabel:`Tools->Arrange into " 1108"folders`. Note that this tool only changes how the files are arranged inside" 1109" the EPUB, it does not change how they are displayed in the File browser." 1110msgstr "" 1111 1112#: ../../__w/calibre/calibre/manual/edit.rst:772 1113msgid "Importing files in other e-book formats as EPUB" 1114msgstr "" 1115 1116#: ../../__w/calibre/calibre/manual/edit.rst:774 1117msgid "" 1118"The editor includes the ability to import files in some other e-book formats" 1119" directly as a new EPUB, without going through a full conversion. This is " 1120"particularly useful to directly create EPUB files from your own hand-edited " 1121"HTML files. You can do this via :guilabel:`File->Import an HTML or DOCX file" 1122" as a new book`." 1123msgstr "" 1124 1125#: ../../__w/calibre/calibre/manual/edit.rst:787 1126#: ../../__w/calibre/calibre/manual/edit.rstNone 1127msgid "The Reports tool" 1128msgstr "" 1129 1130#: ../../__w/calibre/calibre/manual/edit.rst:789 1131msgid "" 1132"The editor includes a nice *Reports* tool (via :guilabel:`Tools->Reports`) " 1133"that shows summaries of the files, images, links, words, characters and " 1134"styles used in the book. Every line in the report is hot-linked. Double " 1135"clicking a line jumps to the place in the book where that item is used or " 1136"defined (as appropriate). For example, in the :guilabel:`Links` view, you " 1137"can double click entries the :guilabel:`Source` column to jump to where the " 1138"link is defined and entries in the :guilabel:`Target` column to jump to " 1139"where the link points." 1140msgstr "" 1141 1142#: ../../__w/calibre/calibre/manual/edit.rst:804 1143msgid "Special features in the code editor" 1144msgstr "" 1145 1146#: ../../__w/calibre/calibre/manual/edit.rst:806 1147msgid "" 1148"The calibre HTML editor is very powerful. It has many features that make " 1149"editing of HTML (and CSS) easier." 1150msgstr "" 1151 1152#: ../../__w/calibre/calibre/manual/edit.rst:810 1153msgid "Syntax highlighting" 1154msgstr "" 1155 1156#: ../../__w/calibre/calibre/manual/edit.rst:812 1157msgid "" 1158"The HTML editor has very sophisticated syntax highlighting. Features " 1159"include:" 1160msgstr "" 1161 1162#: ../../__w/calibre/calibre/manual/edit.rst:814 1163msgid "The text inside bold, italic and heading tags is made bold/italic" 1164msgstr "" 1165 1166#: ../../__w/calibre/calibre/manual/edit.rst:815 1167msgid "" 1168"As you move your cursor through the HTML, the matching HTML tags are " 1169"highlighted, and you can jump to the opening or closing tag with the " 1170"keyboard shortcuts :kbd:`Ctrl+{` and :kbd:`Ctrl+}`. Similarly, you can " 1171"select the contents of a tag with :kbd:`Ctrl+Alt+T`." 1172msgstr "" 1173 1174#: ../../__w/calibre/calibre/manual/edit.rst:819 1175msgid "Invalid HTML is highlighted with a red underline" 1176msgstr "" 1177 1178#: ../../__w/calibre/calibre/manual/edit.rst:820 1179msgid "" 1180"Spelling errors in the text inside HTML tags and attributes such as title " 1181"are highlighted. The spell checking is language aware, based on the value of" 1182" the ``lang`` attribute of the current tag and the overall book language." 1183msgstr "" 1184 1185#: ../../__w/calibre/calibre/manual/edit.rst:823 1186msgid "CSS embedded inside ``<style>`` tags is highlighted" 1187msgstr "" 1188 1189#: ../../__w/calibre/calibre/manual/edit.rst:824 1190msgid "" 1191"Special characters that can be hard to distinguish such as non-breaking " 1192"spaces, different types of hyphens, etc. are highlighted." 1193msgstr "" 1194 1195#: ../../__w/calibre/calibre/manual/edit.rst:826 1196msgid "" 1197"Links to other files in ``<a>`` tags, ``<img>`` and ``<link>`` tags all have" 1198" the filenames highlighted. If the filename they point to does not exist, " 1199"the filename is marked with a red underline." 1200msgstr "" 1201 1202#: ../../__w/calibre/calibre/manual/edit.rst:831 1203msgid "Context sensitive help" 1204msgstr "" 1205 1206#: ../../__w/calibre/calibre/manual/edit.rst:833 1207msgid "" 1208"You can right click on an HTML tag name or a CSS property name to get help " 1209"for that tag or property." 1210msgstr "" 1211 1212#: ../../__w/calibre/calibre/manual/edit.rst:835 1213msgid "" 1214"You can also hold down the :kbd:`Ctrl` key and click on any filename inside " 1215"a link tag to open that file in the editor automatically. Similarly, " 1216":kbd:`Ctrl` clicking a class name will take you to the first style rule that" 1217" matches the tag and class." 1218msgstr "" 1219 1220#: ../../__w/calibre/calibre/manual/edit.rst:839 1221msgid "" 1222"Right clicking a class name in an HTML file will allow you to rename the " 1223"class, changing all occurrences of the class throughout the book and all its" 1224" stylesheets." 1225msgstr "" 1226 1227#: ../../__w/calibre/calibre/manual/edit.rst:846 1228msgid "Auto-complete" 1229msgstr "" 1230 1231#: ../../__w/calibre/calibre/manual/edit.rst:848 1232msgid "" 1233"When editing an e-book, one of the most tedious tasks is creating links to " 1234"other files inside the book, or to CSS stylesheets, or images. You have to " 1235"figure out the correct filename and relative path to the file. The editor " 1236"has auto-complete to make that easier." 1237msgstr "" 1238 1239#: ../../__w/calibre/calibre/manual/edit.rst:853 1240msgid "" 1241"As you type a filename, the editor automatically pops up suggestions. Simply" 1242" use the :kbd:`Tab` key to select the correct file name. The editor even " 1243"offers suggestions for links pointing to an anchor inside another HTML file." 1244" After you type the ``#`` character, the editor will show you a list of all " 1245"anchors in the target file, with a small snippet of text to help you choose " 1246"the right anchor." 1247msgstr "" 1248 1249#: ../../__w/calibre/calibre/manual/edit.rst:859 1250msgid "" 1251"Note that unlike most other completion systems, the editor's completion " 1252"system uses subsequence matching. This means that you can type just two or " 1253"three letters from anywhere in the filename to complete the filename. For " 1254"example, say you want the filename ``../images/arrow1.png``, you can simply " 1255"type ``ia1`` and press :kbd:`Tab` to complete the filename. When searching " 1256"for matches, the completion system prioritizes letters that are at the start" 1257" of a word, or immediately after a path separator. Once you get used to this" 1258" system, you will find it saves you a lot of time and effort." 1259msgstr "" 1260 1261#: ../../__w/calibre/calibre/manual/edit.rst:869 1262msgid "Snippets" 1263msgstr "Utklip" 1264 1265#: ../../__w/calibre/calibre/manual/edit.rst:871 1266msgid "" 1267"The calibre E-book editor supports *snippets*. A snippet is a piece of text " 1268"that is either re-used often or contains a lot of redundant text. The editor" 1269" allows you to insert a snippet with only a few key strokes. The snippets " 1270"are very powerful, with many features, such as placeholders you can jump " 1271"between, automatic mirroring of repeated text and so on. For more " 1272"information, see :doc:`snippets`." 1273msgstr "" 1274