Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do we represent Kana for book title/publisher name/creator name #309

Closed
ghost opened this issue Aug 16, 2018 · 4 comments
Closed

How do we represent Kana for book title/publisher name/creator name #309

ghost opened this issue Aug 16, 2018 · 4 comments

Comments

@ghost
Copy link

ghost commented Aug 16, 2018

This is split from https://github.com/w3c/wpub/issues/299#issuecomment-413542119

In epub 3 we use following way to represent Kana ("クモノイト", pronunciation) versionand Kanji version ("蜘蛛の糸") of title.

<dc:title id="title">蜘蛛の糸</dc:title>
<meta refines="#title" property="file-as">クモノイト</meta>

Can we find a way to represent this more properly?

The use case is RS needs Kana information of title or author to sort side-load Japanese book correctly. I have to say even though in epub "file-as" is still not a good solution since "file-as" can have too much information (such as script) rather than Kana.

How can we do this better?

@HadrienGardeur
Copy link
Member

We don't have the equivalent of file-as, I've already filed an issue for that at #188.

I think the title of this issue is misleading though, as it doesn't have anything to do with file-as.

If you're trying to translate something, this is how it could be handled right now:

"name": [
  {
    "@language": "ja",
    "@value": "村上 春樹"
  },
  {
    "@language": "en",
    "@value": "Haruki Murakami"
  }
]

If we move to language maps, this would be expressed as:

"name": {
  "ja": "村上 春樹"
  "en": "Haruki Murakami"
}

@ghost
Copy link
Author

ghost commented Aug 16, 2018

Thanks @HadrienGardeur for referring. This is not different language script or translation. And I am not requesting equivalent of "file-as" (since even though "file-as" has equivalent item in wpub we still can not resolve the problem. That is why I try to avoid just put "file-as" in title.).
I just need to find a way to let RS can process following metadata and understand that "クモノイト" is Kana of book title "蜘蛛の糸".

<dc:title id="title">蜘蛛の糸</dc:title>
<meta refines="#title" property="file-as">クモノイト</meta>

As you can see from above example, "クモノイト" is just marked as additional information to this title and value of "file-as" could be anything rather than Kana. But RS needs more specific information to parse it and say "ok, クモノイト is Kana for this title 蜘蛛の糸 now we can use クモノイト as hint to sort books in library"

@llemeurfr
Copy link
Contributor

llemeurfr commented Aug 16, 2018

Well, kana (hiragana / katagana) being scripts, a title in japanese + kana can be referenced via ja-Kana. You'll find this code used in e.g.https://www.iso.org/schema/isosts/v1.0/doc/n-cvd0.html. The Kanatoken comes from iso 15924 (https://en.wikipedia.org/wiki/ISO_15924).

I believe an alternate title in kana can be expressed as:

"name": {
  "ja": "村上 春樹"
  "ja-Kana": "クモノイト"
  "en": "Haruki Murakami"
}

@ghost
Copy link
Author

ghost commented Aug 16, 2018

oh, ok thanks @llemeurfr yes seems ja-Kana as @HadrienGardeur mentioned, it's all BCP-47 https://tools.ietf.org/html/bcp47#section-2.2.3

So it could be:

"name": {
  "ja": "村上 春樹"
  "ja-Kana": "クモノイト"
  "en": "Haruki Murakami"
}

@ghost ghost closed this as completed Aug 16, 2018
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants