diff --git a/assets/book/typography/styles/_NotoSansArmenianFont.scss b/assets/book/typography/styles/_NotoSansArmenianFont.scss new file mode 100644 index 000000000..e1c2a8032 --- /dev/null +++ b/assets/book/typography/styles/_NotoSansArmenianFont.scss @@ -0,0 +1,15 @@ +// 'Noto Sans Armenian', @import 'NotoSansArmenianFont' + +@font-face { + font-family: 'Noto Sans Armenian'; + font-style: normal; + font-weight: 400; + src: url('uploads/assets/fonts/NotoSansArmenian-Regular.ttf') format('truetype'); +} + +@font-face { + font-family: 'Noto Sans Armenian'; + font-style: bold; + font-weight: 700; + src: url('uploads/assets/fonts/NotoSansArmenian-Bold.ttf') format('truetype'); +} diff --git a/assets/book/typography/styles/_NotoSansDevanagariFont.scss b/assets/book/typography/styles/_NotoSansDevanagariFont.scss index c019bd998..12810a056 100644 --- a/assets/book/typography/styles/_NotoSansDevanagariFont.scss +++ b/assets/book/typography/styles/_NotoSansDevanagariFont.scss @@ -9,7 +9,7 @@ @font-face { font-family: 'Noto Sans Devanagari'; - font-style: normal; + font-style: bold; font-weight: 700; src: url('uploads/assets/fonts/NotoSansDevanagari-Bold.ttf') format('truetype'); } diff --git a/assets/book/typography/styles/_NotoSerifArmenianFont.scss b/assets/book/typography/styles/_NotoSerifArmenianFont.scss new file mode 100644 index 000000000..2bec5030e --- /dev/null +++ b/assets/book/typography/styles/_NotoSerifArmenianFont.scss @@ -0,0 +1,15 @@ +// 'Noto Serif Armenian', @import 'NotoSerifArmenianFont' + +@font-face { + font-family: 'Noto Serif Armenian'; + font-style: normal; + font-weight: 400; + src: url('uploads/assets/fonts/NotoSerifArmenian-Regular.ttf') format('truetype'); +} + +@font-face { + font-family: 'Noto Serif Armenian'; + font-style: bold; + font-weight: 700; + src: url('uploads/assets/fonts/NotoSerifArmenian-Bold.ttf') format('truetype'); +} diff --git a/assets/book/typography/styles/_fonts-hy.scss b/assets/book/typography/styles/_fonts-hy.scss new file mode 100644 index 000000000..9a7110277 --- /dev/null +++ b/assets/book/typography/styles/_fonts-hy.scss @@ -0,0 +1,13 @@ +@import 'NotoSansArmenianFont', 'NotoSerifArmenianFont'; + +// Sans-serif stack name + +$sans-serif-epub-hy: 'Noto Sans Armenian'; +$sans-serif-prince-hy: 'Noto Sans Armenian'; +$sans-serif-web-hy: 'Noto Sans Armenian'; + +// Serif stack-name + +$serif-epub-hy: 'Noto Serif Armenian'; +$serif-prince-hy: 'Noto Serif Armenian'; +$serif-web-hy: 'Noto Serif Armenian'; diff --git a/packages/buckram/assets/styles/components/specials/_textboxes.scss b/packages/buckram/assets/styles/components/specials/_textboxes.scss index 10efd68d0..37b334272 100644 --- a/packages/buckram/assets/styles/components/specials/_textboxes.scss +++ b/packages/buckram/assets/styles/components/specials/_textboxes.scss @@ -72,6 +72,10 @@ if-map-get($edu-textbox-padding-left, $type); text-align: $edu-header-text-align; + h1, h2, h3, h4, h5, h6 { + color: $header-color; + } + p { text-indent: 0; } diff --git a/partials/content-cover-book-info.php b/partials/content-cover-book-info.php index 708159e51..b21d7c359 100644 --- a/partials/content-cover-book-info.php +++ b/partials/content-cover-book-info.php @@ -27,11 +27,12 @@ $authors = \PressbooksBook\Helpers\get_book_authors( $source_meta ); printf( /* translators: %$1s: title of book, link to book, %2$s: attribution string for the book, %3$s: publisher of book, %4$s: license for book */ - __( 'This book is a cloned version of %1$s%2$s, published using Pressbooks by %3$s under a %4$s license. It may differ from the original.', 'pressbooks-book' ), + __( 'This book is a cloned version of %1$s%2$s, published using Pressbooks%3$s under a %4$s license. It may differ from the original.', 'pressbooks-book' ), sprintf( '%2$s', $source_url, $source_meta['name'] ), /* translators: %2$s: authors of book */ ( $authors ) ? sprintf( __( ' by %s', 'pressbooks-book' ), $authors ) : '', - ( isset( $source_meta['publisher'] ) ) ? $source_meta['publisher']['name'] : '', + /* translators: %3$s: publisher of book */ + ( isset( $source_meta['publisher'] ) ) ? sprintf( __( ' by %s', 'pressbooks-book' ), $source_meta['publisher']['name'] ) : '', sprintf( '%2$s', $source_meta['license']['url'], $source_meta['license']['name'] ) ); } else {