Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    UUID plugin request

    Plugin Development
    uuid ebook
    2
    2
    3849
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H B
      H B last edited by

      I’d like to request a UUID plugin, that generates a unique ID, for ebook development.
      EPuB files need a unique book identifier, which often is generated by an external program.
      I like to use notepad++ to program my books, since they’re made in xml, but need to use an external program to generate the identifier.
      I’m sure it isn’t very hard to make.
      Sigil has one.

      Claudia Frank 1 Reply Last reply Reply Quote 1
      • Claudia Frank
        Claudia Frank @H B last edited by

        Hello H-B,
        if PythonScript has been already installed, then a simple script could do the job.
        Place the cursor where you want to add the uuid and execute the following script.

        import uuid
        uuid = str(uuid.uuid4())
        editor.addText(uuid)
        

        In addition the ToolBucket plugin has such functionality, be aware that the
        version which plugin manager knows isn’t the most recent one.
        This can be found here.

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright © 2014 NodeBB Forums | Contributors