LoginSignup
0
0

Autosar 20-11 を読む:英語(47), AUTOSAR(18)

Last updated at Posted at 2021-04-10

Autosar 19-11 資料まとめ
https://qiita.com/kaizen_nagoya/items/5f547173544703d267aa

にAutosar 19-11 資料を読んだ記録の一覧を作った。

今度は、Autosar 20-11を読み始める。

Autosar Document
https://www.autosar.org/nc/document-search/

から落とした。

前の版は、うまく落ちず、やり直しが何度もあった。

今回も、全部を一括で落とそうとすると、0バイトになった。
20文書ごとに落としたら、落とし漏れ、落とし失敗は一度もなかった。

昨年の10分の1の時間で落とせた。

課題としては、Windowsで落として解凍すると、
standardというフォルダを作る場合と、
standardというフォルダを作らない場合があった。

$ docker run -v /Users/speak007/Desktop/new'/tmp/new -it kaizenjapan/autosar /bin/bash
> 
$ docker run -v /Users/speak007/Desktop/new:/tmp/new -it kaizenjapan/autosar /bin/bash
docker: Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?.
See 'docker run --help'.

$ docker run -v /Users/speak007/Desktop/new:/tmp/new -it kaizenjapan/autosar /bin/bash
Unable to find image 'kaizenjapan/autosar:latest' locally
latest: Pulling from kaizenjapan/autosar
5b7339215d1d: Already exists 
14ca88e9f672: Already exists 
a31c3b1caad4: Already exists 
b054a26005b7: Already exists 
637203abd9ed: Pulling fs layer 
c9d7543d434a: Pulling fs layer 
86128d9220bb: Pulling fs layer 
918db5bca014: Waiting 
docker: error pulling image configuration: Get https://production.cloudflare.docker.com/registry-v2/docker/registry/v2/blobs/sha256/cf/cf190af63bf618801a4eacf8fa60525ec5bb462284bdb89354c23df56ced93a0/data?verify=1617953745-5fTQytydTCW2Nm4iTrjPq%2B%2Bfb%2BY%3D: Service Unavailable.
See 'docker run --help'.

$ docker run -v /Users/speak007/Desktop/new:/tmp/new -it kaizenjapan/autosar /bin/bash
Unable to find image 'kaizenjapan/autosar:latest' locally
latest: Pulling from kaizenjapan/autosar
5b7339215d1d: Already exists 
14ca88e9f672: Already exists 
a31c3b1caad4: Already exists 
b054a26005b7: Already exists 
637203abd9ed: Downloading  39.64MB/88.29MB
c9d7543d434a: Download complete 
86128d9220bb: Downloading  40.28MB/84.68MB
918db5bca014: Downloading  39.69MB/1.123GB

最初のは打ち間違い。
次のはLoginしてなかったからかと思いきや、
dockerアプリが起動していなかった。

pushするときに、loginしていないことが発覚。

PDF to text

bash
# ../script/ptt.sh
Sun Apr 11 09:33:34 UTC 2021
Convert the PDF: AUTOSAR_ASWS_HealthMonitoring.pdf
...

Convert the PDF: AUTOSAR_TR_TimingAnalysis.pdf
Sun Apr 11 09:36:07 UTC 2021

329ファイル:2分33秒 (CPU 2.6GB corei5: memory 16Gb: Macos 10.13.6) 1ファイル0.465秒

#!/bin/bash
# Reading Autosar 20-11
# https://qiita.com/kaizen_nagoya/items/4b6178f3adc8842f7bc5
# (c) Dr. OGAWA Kiyoshi(O.K.) 

 date
 cp adaptive/*.pdf pdf
 cp classic/*.pdf pdf
 cp foundation/*.pdf pdf
 cp test/*.pdf pdf
 cd pdf
 for File in *; do
    case ${File##*.} in
        pdf|PDF )
            echo "Convert the PDF:" ${File}
            pdftotext -q ${File} ../text/${File}.txt ;;
        *) ;;
    esac
 done
 date

単語帳作成(make vocabulary)

aut.sh
#!/bin/bash
# autosar vocabulary
# https://qiita.com/kaizen_nagoya/items/0927727a94b157df2df8
date
cat ./text/* > all.txt
tr 'A-Z' 'a-z' < all.txt > small.txt
sed -f /home/autosar/script/autosar.sed small.txt > sep2.txt
awk -f /home/autosar/script/wcnp.awk sep2.txt > wcsed.txt
date

処理してみた。

Sun Apr 11 11:01:56 UTC 2021
Sun Apr 11 11:07:03 UTC 2021

文書履歴(document history)

ver. 0.01 初稿, 3時間(Windows3時間+Macintosh+docker3時間)20210309
ver. 0.02 URL等追記、pdf to text 作業記録 1時間 20210311

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0