Skip to content

Commit

Permalink
FAQを更新
Browse files Browse the repository at this point in the history
  • Loading branch information
yamasy1549 committed Feb 19, 2020
1 parent e62c984 commit 9d46c50
Show file tree
Hide file tree
Showing 2 changed files with 137 additions and 0 deletions.
117 changes: 117 additions & 0 deletions faq.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
---
layout: page_with_toc
title: FAQ
---

{% assign contents = "" | split: "," %}


{% capture content %}
### What open source license does Vivliostyle use?

Viviostyle uses AGPLv3 (GNU Affero General Public License, version 3) as its open source license.

AGPL is a reciprocal license (the same license applies to derivative works) similar to the GPL (GNU General Public License), which permits modification and commercial use of the software. Unlike the GPL, users over the network are guaranteed access to the source code.

References:
- [GNU Affero General Public License (AGPLv3)](https://www.gnu.org/licenses/agpl-3.0.en.html)
- [Frequently Asked Questions about the GNU Licenses](https://www.gnu.org/licenses/gpl-faq.en.html)
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### Where does the copyright of the Vivliostyle source code belong?

The Vivliostyle source code has the following copyright notation: (e.g., in [epub.ts](https://github.com/vivliostyle/vivliostyle/blob/master/packages/core/src/vivliostyle/epub.ts))

> * Copyright 2013 Google, Inc.
> * Copyright 2015 Trim-marks Inc.
> * Copyright 2018 Vivliostyle Foundation
"Copyright 2013 Google, Inc." is because Vivliostyle was originally developed based on [EPUB Adaptive Layout JavaScript-based implementation ("Adapt")](https://github.com/sorotokin/adaptive-layout), which was developed by Peter Sorotokin of Google. Google owns the rights to the source code from this original project.

Trim-marks Inc. (formerly Vivliostyle Inc.) developed Vivliostyle from 2015 to March 2018. The rights to Vivliostyle source code written during this period belong to Trim-marks Inc. In addition, the license of Vivliostyle was originally Apache License 2.0, inheriting "Adapt" of the original project, but changed to AGPLv3 from February 2017.

Vivliostyle Foundation took over the open source management of Vivliostyle after Trim-marks Inc. dropped the open source Vivliostyle in March 2018. The rights to the source code for Vivliostyle written after that belong to Vivliostyle Foundation.
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### Are there open source license restrictions on publications made with Viviostyle?

No. The fact that the Viviostyle license is AGPL does not affect publications made using Viviostyle. There is no obligation to publish the source data (HTML or CSS) of the publication.
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### Can I use Viviostyle in my company without restrictions?

Yes. You are free to copy and use Viviostyle within a company or organization, and you are not required to publish it even if you modify the source code.

See (GNU License FAQ):
- [Does the GPL require that source code of modified versions be posted to the public?](https://www.gnu.org/licenses/gpl-faq.en.html#GPLRequireSourcePostedPublic)
- [Is making and using multiple copies within one organization or company “distribution”?](https://www.gnu.org/licenses/gpl-faq.en.html#InternalDistribution)
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### Can I use Vivliostyle Viewer or Vivliostyle Print by calling it from a commercial Web application?

Yes. [Vivliostyle Viewer](https://github.com/vivliostyle/vivliostyle/tree/master/packages/viewer) and [Vivliostyle Print](https://github.com/vivliostyle/vivliostyle-print) run as an independent program on the client-side browser, and so can be used in combination with server-side programs or other client-side programs even if they are proprietary.

It is also possible to modify Viviostyle (Viewer/Print) if the modified source code is published. However, the AGPL Viviostyle program and the proprietary program that calls it must not share complex data structures.

See (GNU License FAQ):
- [Can I release a nonfree program that's designed to load a GPL-covered plug-in?](https://www.gnu.org/licenses/gpl-faq.en.html#NFUseGPLPlugins)
- [I'd like to incorporate GPL-covered software in my proprietary system. I have no permission to use that software except what the GPL gives me. Can I do this?](https://www.gnu.org/licenses/gpl-faq.en.html#GPLInProprietarySystem)
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### How does Viviostyle Viewer run as an independent program?

[Vivliostyle Viewer](https://github.com/vivliostyle/vivliostyle/tree/master/packages/viewer) consists of its main HTML file and JavaScript libraries linked from it. Even if the Vivliostyle Viewer is used in a commercial Web application and is placed on the same Web server as that Web application, it is loaded and runs on the end user's Web browser, so it is clearly separate from the Web application's server-side programs.

Data such as the URL of the document to be displayed in Vivliostyle Viewer and the display settings are specified as the URL fragment parameters added to the URL of the main HTML file of Vivliostyle Viewer. In case that the URL parameters are used to pass data between the Viviostyle program and the front-end program (JavaScript etc.) for a commercial Web application, the two programs need not to be combined, so the Viviostyle Viewer can be treated as an independent program.
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### How does Viviostyle Print run as an independent program?

[Vivliostyle Print](https://github.com/vivliostyle/vivliostyle-print) is a JavaScript program that adds a printing feature to Web pages with formatting by Vivliostyle. In case that Vivliostyle Print is used from another program such as the front-end side of a commercial Web application, it invokes the main function of the Vivliostyle Print program with parameters and waits for termination. A simple return value such as an exit code or number of pages processed may be returned. In this way, the two programs do not share a complex data structure or exchange data with each other, so the Vivliostyle Print can be treated as an independent program.
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### Can I use Vivliostyle CLI on the server side?

Yes. [Vivliostyle CLI](https://github.com/vivliostyle/vivliostyle-cli) can be called by another server-side program, and the calling program can be proprietary, as long as each runs as an independent program.
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### What restrictions should I be aware of when using Vivliostyle for commercial use?

In commercial use of Vivliostyle under the AGPL license, you need to be aware of the following:

- If you modify and distribute Vivliostyle (Note: use on website is also considered to be distributed), you need to publish the modified Vivliostyle source code.
- When you create and distribute a program that runs as a single combined program incorporating Vivliostyle, you need to publish the source code of the program under the AGPL license.
- If you modify Viviostyle source code, retain the copyright notice in the header comments of the source files. The source files marked "Copyright 2013 Google, Inc." contain the source code from the original project "Adapt" which is licensed under Apache License 2.0. Retain the following description in the [README](https://github.com/vivliostyle/vivliostyle/blob/master/README.md) and [LISENCE](https://github.com/vivliostyle/vivliostyle/blob/master/LICENSE.md) files:
> Vivliostyle is implemented based on [Peter Sorotokin's EPUB Adaptive Layout implementation](https://github.com/sorotokin/adaptive-layout), which is licensed under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
{% endcapture %}
{% assign contents = contents | push: content %}


{% include page/faq.html
title="Vivliostyle License FAQ"
contents=contents
%}
20 changes: 20 additions & 0 deletions ja/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,24 @@ Vivliostyle (Viewer/Print) を改変して利用することも、改変した
{% assign contents = contents | push: content %}


{% capture content %}
### Vivliostyle Viewer が独立したプログラムとして動作する条件は?

[Vivliostyle Viewer](https://github.com/vivliostyle/vivliostyle/tree/master/packages/viewer) は、そのメインの HTML ファイルと、そこからリンクされている JavaScript ライブラリで構成されます。それが商用の Web アプリケーションと同じ Web サーバー上に置かれて使用される場合でも、それはエンドユーザーの Web ブラウザ上にロードされて実行されるものなので、サーバー側で動作する Web アプリケーションのプログラムとは明確に分離されています。

Vivliostyle Viewer で表示する対象の文書の URL や表示設定などのデータは Vivliostyle Viewer のメインの HTML ファイルの URL に付加される URL のフラグメント・パラメータで指定されます。商用の Web アプリケーションのフロントエンド側のプログラム(JavaScript など)と Vivliostyle プログラムとの間でのデータのやりとりに、この URL パラメータを使うのであれば、ふたつのプログラムを結合する必要がないので、Vivliostyle Viewer を独立したプログラムとして扱うことができます。
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### Vivliostyle Print が独立したプログラムとして動作する条件は?

[Vivliostyle Print](https://github.com/vivliostyle/vivliostyle-print) は、Web ページに Vivliostyle での組版処理をともなった印刷機能を付加する JavaScript プログラムです。これを、商用 Web アプリケーションのフロントエンド側など別プログラムから使用する場合、パラメータを指定して Vivliostyle Print プログラムのメインの関数を呼び出して、その処理の終了を待つことになります。終了コードや処理したページ数など単純な戻り値を返すかもしれません。このような使われ方であれば、ふたつのプログラムどうしで複雑なデータ構造を共有したり相互的なデータのやりとりをするわけではないため、Vivliostyle Print を独立したプログラムとして扱うことができます。
{% endcapture %}
{% assign contents = contents | push: content %}


{% capture content %}
### Vivliostyle CLI をサーバーサイドで利用することはできますか?

Expand All @@ -91,6 +109,8 @@ Vivliostyle を AGPL ライセンスに従いながら商用利用する上で

- Vivliostyle を改変して配布する場合(注意:Webサイトでの利用も含まれます)、改変した Vivliostyle のソースコードを公開する必要があります。
- Vivliostyle を組み込んで単一の結合したプログラムとして動作するものを作成して配布する場合は、その全体のソースコードを AGPL ライセンスで公開する必要があります。
- Vivliostyle のソースコードを改変する場合は、ソースファイルのヘッダーコメントにあるコピーライトの記述を保持してください。「Copyright 2013 Google, Inc.」の記述があるソースファイルには元プロジェクトである "Adapt" 由来のソースコードが含まれており、その元ソースコードは Apache License 2.0 の適用を受けます。[README](https://github.com/vivliostyle/vivliostyle/blob/master/README.md)[LISENCE](https://github.com/vivliostyle/vivliostyle/blob/master/LICENSE.md) ファイルの次の記述を保持してください:
> Vivliostyle is implemented based on [Peter Sorotokin's EPUB Adaptive Layout implementation](https://github.com/sorotokin/adaptive-layout), which is licensed under [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
{% endcapture %}
{% assign contents = contents | push: content %}

Expand Down

0 comments on commit 9d46c50

Please sign in to comment.