1. まずアイテムを定義(titleとかfile)
  2. 続いてその属性を定義(alt, file_as, mime typeとか)

I'm planning to add EPUB builder interface to gepub(not implemented at all, yet). Here is my current idea how GEPUB::Builder interface looks like. Its style is:

  1. define item (e.g. title, creator, etc)
  2. set attributes to last defined item (e.g. alt, file_as, mimetype, etc)

If you have any comment or suggestion, please tell me!

simple example

rather complicated example