回到首頁
李明哲多媒體寫作教學

2022年5月25日 星期三

Debian系统配置中文语言及环境

Debian配置系统中文语言及环境

1,安装语言包 sudo apt install locales

2,配置语言环境 sudo dpkg-reconfigure locales

按下空格即可选择,前面带星号(*)即被选中,通常不需要全部选择安装,选择需要的即可。

3,locale命令基本使用

查看已经安装的语言环境:locale -a

查看当前系统语言环境变量配置: locale

4,临时改变语言环境 export LANG=C.UTF-8

5,永久改变当前用户语言环境

编辑 ~/.bashrc ,以及~/.profile 在.bashrc以及~/.profile文件末尾加入 

export LANG=zh_CN.utf8 即可

**補充
~/.bashrc和~/.profile(仅对当前用户生效)
**

# 例如
echo "export LC_ALL=en_US.UTF-8" >> ~/.bashrc
echo "export LANG=en_US.UTF-8" >> ~/.bashrc
echo "export LANGUAGE=en_US.UTF-8" >> ~/.bashrc

echo "export LANG=zh_TW.UTF-8" >> ~/.profile
echo "export LANGUAGE=zh_TW:zh:zh_CN:zh:en_US:en" >> ~/.profile
echo "export LC_ALL=zh_TW.UTF-8" >> ~/.profile

zh_CN:zh:en_US:en

***

sudo echo "export LANGUAGE=zh_TW:zh_CN:zh:en_US:en" >> ~/.profile

sudo echo "export LANGUAGE=zh_TW:zh_CN:zh:en_US:en" >> ~/.bashrc

 

***


再來
source ~/.bashrc 即可生效

也可以重新開機。


中文字型的問題

 

 Debian 10系列 提供 Google 思源字體套件 (fonts-noto 等系列套件) 。安裝桌面環境時,就會順便安裝思源字體。文泉驛 (fonts-wqy) 和文鼎字體 (ttf-arphic) 不再是中文桌面環境所需字體套件。視個人需要安裝。

    xfonts-wqy : 文泉驛 X11 字體。
    fonts-wqy-zenhei : 文泉驛正黑體 (TrueType)。套件舊名 ttf-wqy-zenhei 。
    fonts-wqy-microhei : 文泉驛微米黑體 (TrueType)。套件舊名 ttf-wqy-microhei 。
    fonts-arphic-ukai : 文鼎楷書體 (TrueType)。套件舊名 ttf-arphic-ukai 。
    fonts-arphic-uming : 文鼎明體 (TrueType) 。套件舊名 ttf-arphic-uming 。
    fonts-noto : Google 思源字體 (Debian 10)。

 fonts-noto-cjk-extra/stable,stable 1:20220127+repack1-1 all
fonts-noto-cjk/stable,stable,now 1:20220127+repack1-1 all 

這兩個可以安裝 fonts-noto-cjk 系列

2022年2月18日 星期五

kde kamoso cheese black screen

 v4l2-ctl --list-devices

(The above requires v4l-utils is installed)


https://community.frame.work/t/solved-webcam-not-working-on-ubuntu-22-04-12th-generation-laptop/32253/32

guvcview



lsusb

tested with Jitsi Meet and webcamera.io

https://forum.kde.org/viewtopic.php%3Ff=19&t=166063.html

gstreamer-qapt/noble 3.0.5-2build3 amd64
gstreamer1.0-adapter-pulseeffects/noble 4.8.7-2build3 amd64
gstreamer1.0-alsa/noble-updates,noble-security 1.24.2-1ubuntu0.2 amd64
gstreamer1.0-autogain-pulseeffects/noble 4.8.7-2build3 amd64
gstreamer1.0-clutter-3.0/noble,now 3.0.27-4build1 amd64 [已安裝,自動]
gstreamer1.0-convolver-pulseeffects/noble 4.8.7-2build3 amd64
gstreamer1.0-crystalizer-pulseeffects/noble 4.8.7-2build3 amd64
gstreamer1.0-espeak/noble 0.5.0-1build2 amd64
gstreamer1.0-fdkaac/noble 1.20.0-1build2 amd64
gstreamer1.0-gl/noble-updates,noble-security,now 1.24.2-1ubuntu0.2 amd64 [已安裝,自動]
gstreamer1.0-gtk3/noble-updates,noble-security,now 1.24.2-1ubuntu1.1 amd64 [已安裝,自動]
gstreamer1.0-libav/noble,now 1.24.1-1build1 amd64 [已安裝,自動]
gstreamer1.0-libcamera/noble 0.2.0-3fakesync1build6 amd64
gstreamer1.0-nice/noble 0.1.21-2build3 amd64
gstreamer1.0-opencv/noble 1.24.2-1ubuntu4 amd64
gstreamer1.0-packagekit/noble-updates 1.2.8-2ubuntu1.2 amd64
gstreamer1.0-pipewire/noble-updates 1.0.5-1ubuntu3 amd64
gstreamer1.0-plugins-bad-apps/noble 1.24.2-1ubuntu4 amd64
gstreamer1.0-plugins-bad/noble,now 1.24.2-1ubuntu4 amd64 [已安裝,自動]
gstreamer1.0-plugins-base-apps/noble-updates,noble-security 1.24.2-1ubuntu0.2 amd64
gstreamer1.0-plugins-base/noble-updates,noble-security,now 1.24.2-1ubuntu0.2 amd64 [已安裝,自動]
gstreamer1.0-plugins-good/noble-updates,noble-security,now 1.24.2-1ubuntu1.1 amd64 [已安裝,自動]
gstreamer1.0-plugins-rtp/noble 1.18.1.2 all
gstreamer1.0-plugins-ugly/noble,now 1.24.1-1build1 amd64 [已安裝,自動]
gstreamer1.0-pocketsphinx/noble 0.8.0+real5prealpha+1-15ubuntu5 amd64
gstreamer1.0-pulseaudio/noble-updates,noble-security 1.24.2-1ubuntu1.1 amd64
gstreamer1.0-python3-plugin-loader/noble 1.24.1-1 amd64
gstreamer1.0-qt5/noble-updates,noble-security 1.24.2-1ubuntu1.1 amd64
gstreamer1.0-qt6/noble-updates,noble-security 1.24.2-1ubuntu1.1 amd64
gstreamer1.0-rtsp/noble 1.24.2-1 amd64
gstreamer1.0-tools/noble-updates,noble-security 1.24.2-1ubuntu0.1 amd64
gstreamer1.0-vaapi/noble,now 1.24.2-1 amd64 [已安裝,自動]
gstreamer1.0-x/noble-updates,noble-security,now 1.24.2-1ubuntu0.2 amd64 [已安裝,自動]



2022年1月8日 星期六

按一下,文本跑到最頂層的互動

 



按一下就跑出畫面在最頂層。




這是我們常用到的互動寫作手法。

我們把更豐富的訊息「先藏起來」,讓讀者自己決定,是先要往下閱讀先求得文本的整體性概念,還是說先要在這裡把文本的部分意義先搞到某種理解上的清晰度。

意義的理解,是一種部分與整體的互動模態下而來的超越性的文本整體性掌握下的意義給出。

但部分與整體的互動模態是要如何的一種形態,互動文本,可以讓讀者自己選擇。

在理解的過程中,部分和整體之間的是辨證的發展的,並不是一種固定的模式。每個人,都有自己部分和整體如何來搭配的策略。

互動文本,是讓這種閱讀策略,可以更好的被實踐出來的文本模態。


---- 實例 -----

請按我!!
這是要呈現的內文!!
是要往下說明的解釋性內文。




 
 
 <style>
#floing0933 {

}
 
 .floing0933 {
 border: 0px solid red;
 width:0px;
 height: 0px;
 overflow: hidden;
 display: flex;
 justify-content: center;
 align-items: center;
 }
 
 .floing0933-1 {
 box-sizing: border-box;
 border: 0px solid red;
 z-index: 9999;
 position: fixed;
 top: 0px;
 left: 0px;
 width: 100%;
 height: 100%;
 background-color: rgba(160,160,160,0.3);
 padding: 1em;
 }
 
 .imgflo0944 {
 height: 95%;
 }
 </style>

 <div style="width: 15%; border: 1px solid red;" onclick="document.getElementById('floing0933').classList.add('floing0933-1')">
 
 請按我!!<br>
</div>

 <div  id="floing0933" class="floing0933" onclick="document.getElementById('floing0933').classList.remove('floing0933-1')">
<div style="background-color: rgba(160,160,160,0.9); width: 100%; height: 100%; display: flex; justify-content: center;
  align-items: center;">
<div style="font-size: 42px; color: red;">
  這是要呈現的內文!!<br>
  是要往下說明的解釋性內文。<br>
  <br>
  <br>
  <span style="color: white; font-size: 42px;">&#10008;<span>
  </div>
</div>
 </div>