Nothin' but Slackware

バイクとLinuxに戯れる日々

2024年04月

Takao Fonts packages for Slackware

(Takao フォント Home pageから抜粋)
TakaoフォントはIPAフォントの派生版であり、コミュニティによって開発されています。本プロジェクトの主目的は、コミュニティによるフォントのバグ修正と改善の可能性を確保することです。


Slackware環境向けにパッケージを作成したので、各種ファイル、データのダウンロードリンクのみを記します。
ファイルはすべて私のMEGAクラウドドライブのダウンロードリンクです。

1. Takaoフォント
 SBo形式パッケージ作成用スクリプト: ttf-takao.tar.gz
 コンパイル済パッケージ: ttf-takao-00303.01-noarch-1_SBo.tgz

2. TakaoEx フォント
 SBo形式パッケージ作成用スクリプト: ttf-takaoex.tar.gz
 コンパイル済パッケージ: ttf-takaoex-00201.01-noarch-1_SBo.tgz


FFaudioConverter-0.32.0 has been released (2024-04-07)

FFaudioConverte-0.32.0 がリリースされました。

FFaudioConverter は 変換エンジンとして ffmpeg を使い、オーディオファイルを別形式に変換する
GUIフロントエンドツールです.

オーディオファイル変換に特化しており、極めて軽量であり動作も軽快です.
オリジナルソースはメニュー言語として英語、ドイツ語、フランス語、トルコ語がサポート
されてていますが、残念ながら日本語サポートはありません。
ここでは、メッセージデータを日本語翻訳して、少々自分用の改良を加えたパッケージを作成しました。

【変更の概要】
対象ソース: FFaudioConverter 0.32.https://github.com/Bleuzen/FFaudioConverter
  • table gets hidden again when clearing files list
  • updated turkish translation
  • added japanese translation
  • new screenshots
*** パッチによる改善 ***
変更その1: デスクトップファイルに日本語エントリーを追加
変更その2: ダークモードでデスクトップを利用している場合、メインメニューの
       ステータス表示色がいまひとつ見づらかったので表示色を変更した.
変更その3: 設定ダイアログで一部の日本語表示が尻切れている問題を改善するパッチを適用

【推奨】
soxr をインストールしたうえで、FFmpeg--enable-libsoxr でリビルドしておくと
    SoXを利用した高品質なオーディオ変換機能が使える

【スクリーンショット】
 ・メインダイアログ
FFaudioConverter-0.32.0_mainwindow

・Aboutダイアログ
FFaudioConverter-0.32.0_About

・設定ダイアログ(修正前)
FFaudioConverter-0.32.0_settingdialog_original

・設定ダイアログ(修正後)
FFaudioConverter-0.32.0_settingdialog_patched

・返還中の状態表示
FFaudioConverter-0.32.0_converting-status


FFaudioConverter.SlackBuild
[code]
#!/bin/bash
#
# Slackware build script for FFaudioConverter.
#
# Copyright 2023  Edinaldo P. Silva, Rio de Janeiro, Brazil.
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

cd $(dirname $0) ; CWD=$(pwd)

PRGNAM=FFaudioConverter
VERSION=${VERSION:-
0.32.0}
BUILD=${BUILD:-1}
TAG=${TAG:-jw}
PKGTYPE=${PKGTYPE:-txz}

if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i586 ;;
    arm*) ARCH=arm ;;
       *) ARCH=$( uname -m ) ;;
  esac
fi

if [ ! -z "${PRINT_PACKAGE_NAME}" ]; then
  echo "$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE"
  exit 0
fi

TMP=${TMP:-/tmp/SBo}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

if [ "$ARCH" = "i586" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

set -e

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar.gz
cd $PRGNAM-$VERSION

# Apply Japanese translation fix patch
zcat $CWD/001_FFaudioConverter_Japanesse.desktop.patch.gz | patch -p1 --verbose || exit 1

# Fix status colors match to Dark theme
zcat $CWD/002_dark-status-color.patch.gz | patch -p1 --verbose || exit 1

# Wider settingdailog box for japanese menu
zcat $CWD/003_settingdaialog_width.diff.gz | patch -p1 --verbose || exit 1


chown -R root:root .
find -L . \
 \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \
  -o -perm 511 \) -exec chmod 755 {} \+ -o \
 \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \
  -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \+

mkdir -p build
cd build/

qmake-qt5 PREFIX=$PKG/usr ../FFaudioConverter.pro -spec linux-g++ CONFIG+=release
make
strip -s ffaudioconverter
make DESTDIR=$PKG/usr install

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
install -m0644 ../{LICENSE,README.md} $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild

mkdir -p $PKG/install
cat $CWD/doinst.sh > $PKG/install/doinst.sh
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.$PKGTYPE

001_FFaudioConverter_Japanesse.desktop.patch
[code]
diff -Nru a/com.github.Bleuzen.FFaudioConverter.desktop b/com.github.Bleuzen.FFaudioConverter.desktop
--- a/com.github.Bleuzen.FFaudioConverter.desktop    2024-02-12 16:10:43.008618177 +0900
+++ b/com.github.Bleuzen.FFaudioConverter.desktop    2024-02-12 16:09:53.024708019 +0900
@@ -1,7 +1,9 @@
 [Desktop Entry]
 Comment=DnD GUI for converting audio files
+Comment[ja]=DnD GUI オーディオファイル変換
 Exec=ffaudioconverter %F
 Name=FFaudioConverter
+Name[ja]=オーディファイル変換GUIツール
 Icon=com.github.Bleuzen.FFaudioConverter
 StartupNotify=true
 Type=Application


002_dark-status-color.patch
[code]
--- a/src/mainwindow.cpp    2024-02-12 17:51:00.868083373 +0900
+++ b/src/mainwindow.cpp    2024-02-12 17:51:16.343100355 +0900
@@ -171,19 +171,19 @@
 {
     if(status == FFmpegTask::ConvertStatus::Pending) {
         model->setData(index, tr("Pending"));
-        model->setData(index, QColor(Qt::yellow), Qt::BackgroundRole);
+        model->setData(index, QColor(Qt::darkYellow), Qt::BackgroundRole);
     } else if(status == FFmpegTask::ConvertStatus::Converting) {
         model->setData(index, tr("Converting"));
         model->setData(index, QColor(Qt::darkYellow), Qt::BackgroundRole);
     } else if(status == FFmpegTask::ConvertStatus::Done) {
         model->setData(index, tr("Done"));
-        model->setData(index, QColor(Qt::green), Qt::BackgroundRole);
+        model->setData(index, QColor(Qt::darkGreen), Qt::BackgroundRole);
     } else if(status == FFmpegTask::ConvertStatus::Failed) {
         model->setData(index, tr("Failed"));
-        model->setData(index, QColor(Qt::red), Qt::BackgroundRole);
+        model->setData(index, QColor(Qt::darkRed), Qt::BackgroundRole);
     } else if(status == FFmpegTask::ConvertStatus::Skipped) {
         model->setData(index, tr("Skipped"));
-        model->setData(index, QColor(Qt::blue), Qt::BackgroundRole);
+        model->setData(index, QColor(Qt::darkBlue), Qt::BackgroundRole);
     }
 }
 

003_settingdaialog_width.diff
[code]
--- a/src/settingsdialog.ui    2024-04-07 09:51:37.791657279 +0900
+++ b/src/settingsdialog.ui    2024-04-07 10:18:28.122694272 +0900
@@ -6,7 +6,7 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>410</width>
+    <width>460</width>
     <height>310</height>
    </rect>
   </property>
@@ -18,7 +18,7 @@
     <rect>
      <x>10</x>
      <y>270</y>
-     <width>380</width>
+     <width>430</width>
      <height>30</height>
     </rect>
    </property>
@@ -34,7 +34,7 @@
     <rect>
      <x>10</x>
      <y>10</y>
-     <width>390</width>
+     <width>440</width>
      <height>250</height>
     </rect>
    </property>
@@ -50,7 +50,7 @@
       <rect>
        <x>10</x>
        <y>20</y>
-       <width>130</width>
+       <width>150</width>
        <height>24</height>
       </rect>
      </property>
@@ -61,7 +61,7 @@
     <widget class="QLineEdit" name="lineEdit_OutputDirectory">
      <property name="geometry">
       <rect>
-       <x>144</x>
+       <x>164</x>
        <y>19</y>
        <width>200</width>
        <height>26</height>
@@ -73,7 +73,7 @@
       <rect>
        <x>10</x>
        <y>60</y>
-       <width>130</width>
+       <width>150</width>
        <height>24</height>
       </rect>
      </property>
@@ -84,9 +84,9 @@
     <widget class="QComboBox" name="comboBox_OutputFormat">
      <property name="geometry">
       <rect>
-       <x>144</x>
+       <x>164</x>
        <y>59</y>
-       <width>230</width>
+       <width>260</width>
        <height>26</height>
       </rect>
      </property>
@@ -96,7 +96,7 @@
       <rect>
        <x>10</x>
        <y>100</y>
-       <width>130</width>
+       <width>150</width>
        <height>24</height>
       </rect>
      </property>
@@ -107,9 +107,9 @@
     <widget class="QComboBox" name="comboBox_Quality">
      <property name="geometry">
       <rect>
-       <x>144</x>
+       <x>164</x>
        <y>99</y>
-       <width>230</width>
+       <width>260</width>
        <height>26</height>
       </rect>
      </property>
@@ -117,9 +117,9 @@
     <widget class="QComboBox" name="comboBox_OutputSamplerate">
      <property name="geometry">
       <rect>
-       <x>144</x>
+       <x>164</x>
        <y>139</y>
-       <width>230</width>
+       <width>260</width>
        <height>26</height>
       </rect>
      </property>
@@ -142,7 +142,7 @@
       <rect>
        <x>10</x>
        <y>140</y>
-       <width>130</width>
+       <width>150</width>
        <height>24</height>
       </rect>
      </property>
@@ -155,7 +155,7 @@
       <rect>
        <x>10</x>
        <y>180</y>
-       <width>130</width>
+       <width>150</width>
        <height>24</height>
       </rect>
      </property>
@@ -166,9 +166,9 @@
     <widget class="QComboBox" name="comboBox_OutputChannelCount">
      <property name="geometry">
       <rect>
-       <x>144</x>
+       <x>164</x>
        <y>179</y>
-       <width>230</width>
+       <width>260</width>
        <height>26</height>
       </rect>
      </property>
@@ -183,7 +183,7 @@
       <rect>
        <x>10</x>
        <y>20</y>
-       <width>130</width>
+       <width>150</width>
        <height>24</height>
       </rect>
      </property>
@@ -194,9 +194,9 @@
     <widget class="QLineEdit" name="lineEdit_FFmpegBinary">
      <property name="geometry">
       <rect>
-       <x>144</x>
+       <x>164</x>
        <y>19</y>
-       <width>230</width>
+       <width>260</width>
        <height>26</height>
       </rect>
      </property>
@@ -222,7 +222,7 @@
       <rect>
        <x>10</x>
        <y>60</y>
-       <width>130</width>
+       <width>150</width>
        <height>24</height>
       </rect>
      </property>
@@ -237,7 +237,7 @@
     <widget class="QSpinBox" name="spinBox_Threads">
      <property name="geometry">
       <rect>
-       <x>144</x>
+       <x>164</x>
        <y>60</y>
        <width>42</width>
        <height>24</height>
@@ -310,9 +310,9 @@
     <widget class="QComboBox" name="comboBox_AudioFiltersPresets">
      <property name="geometry">
       <rect>
-       <x>144</x>
+       <x>164</x>
        <y>19</y>
-       <width>230</width>
+       <width>260</width>
        <height>26</height>
       </rect>
      </property>

slack-desc
[code]
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':' except on otherwise blank lines.

                |-----handy-ruler------------------------------------------------------|
FFaudioConverter: FFaudioConverter (Graphical audio converter)
FFaudioConverter:
FFaudioConverter: is a GUI for converting music or videos to audio files with FFmpeg.
FFaudioConverter:
FFaudioConverter:
FFaudioConverter: Home page: https://github.com/Bleuzen/FFaudioConverter/
FFaudioConverter:
FFaudioConverter:
FFaudioConverter:
FFaudioConverter:
FFaudioConverter:


[Update]

ギャラリー
  • deepl-clip.sh で簡単翻訳 [更新:2025-04-29]
  • Avidemux 2.8.2_20250323_7cf15b3
  • Avidemux 2.8.2_20250323_7cf15b3
  • Avidemux 2.8.x with Qt6 GUI
  • Avidemux 2.8.x with Qt6 GUI
  • MEGAcmd-2.0.0_Linux
  • gcolor3 with Japanese menu and LC_MESSAGES
  • avidemux2 TEST package from the latest git source (on jul.23.2024)
  • fcitx5-mozc-2.29.5135.102.1 (15jw) -- Added "merge-ut-dictionaries"