Yahoo! JAPANのロゴのsvgを縮める

Yahoo! JAPANがリニューアルされてロゴがsvg形式になってました。これを縮めてみます。

![スクリーンショット 2019-10-22 16.16.13.png](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/13740/fc23ae2e-6169-db80-0d25-3f25a6324c53.png)

以下がオリジナルデータを整形したものです。
オリジナルデータから余分なホワイトスペースを削除したものは5,431バイトあります。

```xml
<svg width="152" height="39" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
	<defs>
		<path id="a" d="M.472.348h8.123v13.958H.472z"/>
		<path id="c" d="M.401.132h8.625v23.39H.401z"/>
	</defs>
	<g fill="none" fill-rule="evenodd">
		<g transform="translate(88.669 24.24)">
			<mask id="b" fill="#fff">
				<use xlink:href="#a"/>
			</mask>
			<path mask="url(#b)" fill="#F03" d="M8.518 1.154c-.374.089-1.751.56-2.155.674-.04 1.268-.245 6.933-.245 6.933-.112 2.638-1.26 4.385-4.299 5.545l-1.097-.27c1.482-.878 2.133-1.649 2.322-2.291.303-.833.455-2.76.455-6.312 0 0-.034-2.68-.1-3.585-.456-.074-2.324-.53-2.9-.657L.472.348c1.19.036 3.788.073 4.81.073C6.307.42 7.553.37 8.596.348l-.077.806z"/>
		</g>
		<path fill="#F03" d="M145.68 27.115c-.223.053-.86.2-1.42.317-.034.915.07 7.644.082 9.251 0 .231-.259.35-.469.14-1.459-1.423-6.108-6.679-7.656-8.585-.005 1.19.06 5.98.072 6.867.582.161 1.931.483 2.181.533l.056.958a402.974 402.974 0 0 0-5.13 0l.016-.93c.502-.21.977-.384 1.43-.56.06-.562.053-7.19.056-7.615-.383-.035-1.149-.056-1.676-.08v-1.153a236.29 236.29 0 0 1 3.685 0c1.342 1.523 4.557 5.1 6.187 6.92.017-1.537-.09-5.133-.11-5.753-.278-.051-.91-.113-1.606-.257l-.09-.905c.274.025 2.027.053 2.354.053.327 0 1.787-.088 2.09-.112l-.053.911zm-27.565 2.695c0 1.276-1.19 1.805-2.488 2.013v.9c2.735-.276 4.48-1.361 4.48-2.96v-.076c0-1.86-1.237-3.473-4.156-3.53 0 0-1.05-.043-1.657-.043h-3.933l.17 1.022c.548.06 1.274.12 1.734.152.042 1.277.172 6.544.085 8.039-.312.068-1.346.276-1.74.374l-.097.895c.39-.025 6.03-.024 6.446 0l-.05-.771c-.401-.107-1.85-.369-2.219-.458-.05-.353-.152-7.805-.13-8.13.586 0 1.658.027 2.123.15 1.117.297 1.432 1.5 1.432 2.251M42.058 5.921c-.742.072-3.827.762-4.865.983-1.11.297-11.767 8.616-12.434 10.537-.147.666 0 7.82 0 7.82l6.025.402-.212 1.984c-.867-.06-6.457-.05-9.961-.05-1.777 0-7.198.198-9.028.145l.228-1.89c1.143.095 2.886-.084 3.954-.368 1.068-.283 1.831-.708 1.831-1.776v-6.206C17.226 16.394 8.364 5.259 6.07 3.486c-.667-.223-5.034-.698-6.07-.918L.216.704H20.44l-.292 1.715c-.888.222-5.17.305-6.28.599 2.888 4.286 7.456 9.804 8.937 11.948.814-1.183 8.564-6.596 8.786-8.294-1.11-.22-4.79-.75-5.381-.75l-.352-1.9H43.32l-1.262 1.9zm43.075 16.178c-3.186-.19-8.778-.11-12.074 0l.195-1.683c.496-.05 3.101-.462 3.762-.556v-5.757c-1.586 0-10.448.192-11.847.548v5.173s3.818.438 4.71.533l-.205 1.746c-3.476-.193-10.393-.2-13.68-.011l.215-1.874c1.031-.028 3.79-.344 4.433-.444.1-1.284.148-3.311.148-5.434v-2.621c0-.889-.047-3.458-.098-4.349-.758-.002-3.923-.298-4.816-.346l.218-1.66c2.857.16 11.673.155 14.103.006l-.25 1.546c-.69.037-3.818.5-4.778.5v4.591h11.847V5.302c-.872-.091-3.007-.566-3.95-.612l.184-1.543c1.98.147 9.811.123 11.908 0l-.146 1.62c-.644.05-2.942.441-3.697.492v14.653s3.345.406 4.04.504l-.222 1.683z"/>
		<g transform="translate(142.295 .398)">
			<mask id="d" fill="#fff">
				<use xlink:href="#c"/>
			</mask>
			<path mask="url(#d)" fill="#F03" d="M4.984 16.823H1.801V.133h7.225L8.378 2.64 4.984 16.823zm-2.398 6.61l-2.185.09.42-3.688L3 19.94l2.036-.076-.428 3.61-2.022-.04z"/>
		</g>
		<path fill="#F03" d="M111.388 13.783c0-5.291-5.082-8.503-12.816-8.663l-.375-.002-.374.002c-8.207.171-12.747 3.401-12.747 8.69l-.003.08c0 .027 0 .051.003.079.052 4.98 5.012 8.527 12.747 8.689 0 0 .275.004.374.002.1.002.375-.002.375-.002 7.734-.162 12.723-3.497 12.815-8.668l.001-.207m-12.404 6.54c-.266.008-.528.024-.787.036-.259-.012-.52-.028-.787-.035-2.678-.075-7.849-1.6-7.849-6.203v-.463c0-4.606 5.17-6.13 7.85-6.203.266-.008.527-.024.786-.036.259.012.521.028.787.036 2.678.072 7.85 1.597 7.85 6.203v.462c0 4.605-5.172 6.129-7.85 6.204m42.598-8.64l-.003-.096c-.196-5.536-5.54-9.113-14.146-9.295 0 0-.233-.005-.353-.005-.116 0-.35.005-.35.005-8.609.182-13.975 3.516-14.146 9.295v.183c.171 5.781 5.537 9.194 14.146 9.375a10.48 10.48 0 0 0 .703 0c8.605-.18 13.975-3.594 14.146-9.375 0 0 .003-.055.003-.087m-13.323 6.938c-.396.028-.789.04-1.179.043-.39-.004-.781-.015-1.177-.043-2.926-.2-8.231-1.992-8.342-6.941.11-4.95 5.416-6.664 8.342-6.864.396-.025.787-.038 1.177-.042.39.004.783.017 1.18.042 2.926.2 8.23 1.913 8.341 6.864-.11 4.949-5.415 6.741-8.342 6.94m-73.33 5.857c-.896-1.468-4.28-9.787-5.794-13.55l2.778-.434.331-1.421H48.02l.004.013c-1.605.024-8.145-.035-8.864-.077l-.12 1.48 3.358.802s-4.914 9.693-5.895 11.09c-.873.19-3.006.702-3.806.795l-.23 1.79c.661-.093 9.237-.045 10.03 0l.185-1.615-2.99-.706s1.358-2.818 1.545-3.145c.98-.187 6.554-.27 6.554-.27l1.985 5.379s-2.363.364-3.297.41l-.21 1.764c.7 0 12.025-.045 12.352 0l.19-1.586c-.84-.045-3.088-.578-3.882-.719zm-12.962-6.992c.28-.746 2.798-6.084 2.798-6.084l2.37 6.084h-5.168zm82.216 14.36c.222-.545 1.668-3.926 1.668-3.926l1.53 3.938-3.198-.012zm6.74 3.542c-1.12-2.33-2.995-6.908-3.499-8.143l1.338-.179.093-.895-5.534.192-.02.75 1.436.248c-.948 2.065-3.388 7.343-3.813 7.964-.37.13-.826.27-1.27.433l-.09.838c1.27-.07 4.01-.025 4.44 0l.02-.752-1.375-.39s.857-2.066 1.166-2.69c1.068-.014 3.886.013 3.886.013l1.048 2.74s-.976.207-1.701.346l-.125.733c.38 0 5.387-.025 5.565 0l.096-.867c-.46-.097-1.66-.34-1.66-.34zm-29.916-3.541c.223-.546 1.669-3.927 1.669-3.927l1.529 3.938-3.198-.011zm6.741 3.542c-.7-1.457-2.607-6.012-3.477-8.146l1.449-.26.04-.81-5.615.19-.008.742 1.435.249c-.948 2.064-3.4 7.351-3.825 7.972-.464.17-.872.295-1.27.433l-.09.838c1.255-.043 4.012-.025 4.44 0l.021-.753-1.375-.39s.858-2.066 1.167-2.689c1.067-.015 3.884.013 3.884.013l1.049 2.74s-.976.207-1.701.345l-.124.734c.378 0 5.387-.026 5.563 0l.096-.867c-.459-.098-1.659-.34-1.659-.34z"/>
	</g>
</svg>
```

まずmaskを使ってますが、調査してみると表示上では意味をなさないものだったのでこれを削除します。これによってmaskで使用してるdefs部分と冒頭のxmlns:xlinkの宣言も不要になるので削除します。
また全体を囲むfill=none、fill-rule=evenoddを指定するgタグも表示上意味無しなので削除します。

```xml
<svg width="152" height="39" xmlns="http://www.w3.org/2000/svg">
	<g transform="translate(88.669 24.24)">
		<path fill="#F03" d="M8.518 1.154c-.374.089-1.751.56-2.155.674-.04 1.268-.245 6.933-.245 6.933-.112 2.638-1.26 4.385-4.299 5.545l-1.097-.27c1.482-.878 2.133-1.649 2.322-2.291.303-.833.455-2.76.455-6.312 0 0-.034-2.68-.1-3.585-.456-.074-2.324-.53-2.9-.657L.472.348c1.19.036 3.788.073 4.81.073C6.307.42 7.553.37 8.596.348l-.077.806z"/>
	</g>
	<path fill="#F03" d="M145.68 27.115c-.223.053-.86.2-1.42.317-.034.915.07 7.644.082 9.251 0 .231-.259.35-.469.14-1.459-1.423-6.108-6.679-7.656-8.585-.005 1.19.06 5.98.072 6.867.582.161 1.931.483 2.181.533l.056.958a402.974 402.974 0 0 0-5.13 0l.016-.93c.502-.21.977-.384 1.43-.56.06-.562.053-7.19.056-7.615-.383-.035-1.149-.056-1.676-.08v-1.153a236.29 236.29 0 0 1 3.685 0c1.342 1.523 4.557 5.1 6.187 6.92.017-1.537-.09-5.133-.11-5.753-.278-.051-.91-.113-1.606-.257l-.09-.905c.274.025 2.027.053 2.354.053.327 0 1.787-.088 2.09-.112l-.053.911zm-27.565 2.695c0 1.276-1.19 1.805-2.488 2.013v.9c2.735-.276 4.48-1.361 4.48-2.96v-.076c0-1.86-1.237-3.473-4.156-3.53 0 0-1.05-.043-1.657-.043h-3.933l.17 1.022c.548.06 1.274.12 1.734.152.042 1.277.172 6.544.085 8.039-.312.068-1.346.276-1.74.374l-.097.895c.39-.025 6.03-.024 6.446 0l-.05-.771c-.401-.107-1.85-.369-2.219-.458-.05-.353-.152-7.805-.13-8.13.586 0 1.658.027 2.123.15 1.117.297 1.432 1.5 1.432 2.251M42.058 5.921c-.742.072-3.827.762-4.865.983-1.11.297-11.767 8.616-12.434 10.537-.147.666 0 7.82 0 7.82l6.025.402-.212 1.984c-.867-.06-6.457-.05-9.961-.05-1.777 0-7.198.198-9.028.145l.228-1.89c1.143.095 2.886-.084 3.954-.368 1.068-.283 1.831-.708 1.831-1.776v-6.206C17.226 16.394 8.364 5.259 6.07 3.486c-.667-.223-5.034-.698-6.07-.918L.216.704H20.44l-.292 1.715c-.888.222-5.17.305-6.28.599 2.888 4.286 7.456 9.804 8.937 11.948.814-1.183 8.564-6.596 8.786-8.294-1.11-.22-4.79-.75-5.381-.75l-.352-1.9H43.32l-1.262 1.9zm43.075 16.178c-3.186-.19-8.778-.11-12.074 0l.195-1.683c.496-.05 3.101-.462 3.762-.556v-5.757c-1.586 0-10.448.192-11.847.548v5.173s3.818.438 4.71.533l-.205 1.746c-3.476-.193-10.393-.2-13.68-.011l.215-1.874c1.031-.028 3.79-.344 4.433-.444.1-1.284.148-3.311.148-5.434v-2.621c0-.889-.047-3.458-.098-4.349-.758-.002-3.923-.298-4.816-.346l.218-1.66c2.857.16 11.673.155 14.103.006l-.25 1.546c-.69.037-3.818.5-4.778.5v4.591h11.847V5.302c-.872-.091-3.007-.566-3.95-.612l.184-1.543c1.98.147 9.811.123 11.908 0l-.146 1.62c-.644.05-2.942.441-3.697.492v14.653s3.345.406 4.04.504l-.222 1.683z"/>
	<g transform="translate(142.295 .398)">
		<path fill="#F03" d="M4.984 16.823H1.801V.133h7.225L8.378 2.64 4.984 16.823zm-2.398 6.61l-2.185.09.42-3.688L3 19.94l2.036-.076-.428 3.61-2.022-.04z"/>
	</g>
	<path fill="#F03" d="M111.388 13.783c0-5.291-5.082-8.503-12.816-8.663l-.375-.002-.374.002c-8.207.171-12.747 3.401-12.747 8.69l-.003.08c0 .027 0 .051.003.079.052 4.98 5.012 8.527 12.747 8.689 0 0 .275.004.374.002.1.002.375-.002.375-.002 7.734-.162 12.723-3.497 12.815-8.668l.001-.207m-12.404 6.54c-.266.008-.528.024-.787.036-.259-.012-.52-.028-.787-.035-2.678-.075-7.849-1.6-7.849-6.203v-.463c0-4.606 5.17-6.13 7.85-6.203.266-.008.527-.024.786-.036.259.012.521.028.787.036 2.678.072 7.85 1.597 7.85 6.203v.462c0 4.605-5.172 6.129-7.85 6.204m42.598-8.64l-.003-.096c-.196-5.536-5.54-9.113-14.146-9.295 0 0-.233-.005-.353-.005-.116 0-.35.005-.35.005-8.609.182-13.975 3.516-14.146 9.295v.183c.171 5.781 5.537 9.194 14.146 9.375a10.48 10.48 0 0 0 .703 0c8.605-.18 13.975-3.594 14.146-9.375 0 0 .003-.055.003-.087m-13.323 6.938c-.396.028-.789.04-1.179.043-.39-.004-.781-.015-1.177-.043-2.926-.2-8.231-1.992-8.342-6.941.11-4.95 5.416-6.664 8.342-6.864.396-.025.787-.038 1.177-.042.39.004.783.017 1.18.042 2.926.2 8.23 1.913 8.341 6.864-.11 4.949-5.415 6.741-8.342 6.94m-73.33 5.857c-.896-1.468-4.28-9.787-5.794-13.55l2.778-.434.331-1.421H48.02l.004.013c-1.605.024-8.145-.035-8.864-.077l-.12 1.48 3.358.802s-4.914 9.693-5.895 11.09c-.873.19-3.006.702-3.806.795l-.23 1.79c.661-.093 9.237-.045 10.03 0l.185-1.615-2.99-.706s1.358-2.818 1.545-3.145c.98-.187 6.554-.27 6.554-.27l1.985 5.379s-2.363.364-3.297.41l-.21 1.764c.7 0 12.025-.045 12.352 0l.19-1.586c-.84-.045-3.088-.578-3.882-.719zm-12.962-6.992c.28-.746 2.798-6.084 2.798-6.084l2.37 6.084h-5.168zm82.216 14.36c.222-.545 1.668-3.926 1.668-3.926l1.53 3.938-3.198-.012zm6.74 3.542c-1.12-2.33-2.995-6.908-3.499-8.143l1.338-.179.093-.895-5.534.192-.02.75 1.436.248c-.948 2.065-3.388 7.343-3.813 7.964-.37.13-.826.27-1.27.433l-.09.838c1.27-.07 4.01-.025 4.44 0l.02-.752-1.375-.39s.857-2.066 1.166-2.69c1.068-.014 3.886.013 3.886.013l1.048 2.74s-.976.207-1.701.346l-.125.733c.38 0 5.387-.025 5.565 0l.096-.867c-.46-.097-1.66-.34-1.66-.34zm-29.916-3.541c.223-.546 1.669-3.927 1.669-3.927l1.529 3.938-3.198-.011zm6.741 3.542c-.7-1.457-2.607-6.012-3.477-8.146l1.449-.26.04-.81-5.615.19-.008.742 1.435.249c-.948 2.064-3.4 7.351-3.825 7.972-.464.17-.872.295-1.27.433l-.09.838c1.255-.043 4.012-.025 4.44 0l.021-.753-1.375-.39s.858-2.066 1.167-2.689c1.067-.015 3.884.013 3.884.013l1.049 2.74s-.976.207-1.701.345l-.124.734c.378 0 5.387-.026 5.563 0l.096-.867c-.459-.098-1.659-.34-1.659-.34z"/>
</svg>
```

transform属性あるgタグで囲まれたpathを、pathのみに変換します

```xml
<svg width="152" height="39" xmlns="http://www.w3.org/2000/svg">
	<path fill="#F03" d="M97.187 25.394c-.374.089-1.751.56-2.155.674-.04 1.268-.245 6.933-.245 6.933-.112 2.638-1.26 4.385-4.299 5.545l-1.097-.27c1.482-.878 2.133-1.649 2.322-2.291.303-.833.455-2.76.455-6.312 0 0-.034-2.68-.1-3.585-.456-.074-2.324-.53-2.9-.657l-.027-.843c1.19.036 3.788.073 4.81.073 1.025-.001 2.271-.051 3.314-.073l-.077.806z"/>
	<path fill="#F03" d="M145.68 27.115c-.223.053-.86.2-1.42.317-.034.915.07 7.644.082 9.251 0 .231-.259.35-.469.14-1.459-1.423-6.108-6.679-7.656-8.585-.005 1.19.06 5.98.072 6.867.582.161 1.931.483 2.181.533l.056.958a402.974 402.974 0 0 0-5.13 0l.016-.93c.502-.21.977-.384 1.43-.56.06-.562.053-7.19.056-7.615-.383-.035-1.149-.056-1.676-.08v-1.153a236.29 236.29 0 0 1 3.685 0c1.342 1.523 4.557 5.1 6.187 6.92.017-1.537-.09-5.133-.11-5.753-.278-.051-.91-.113-1.606-.257l-.09-.905c.274.025 2.027.053 2.354.053.327 0 1.787-.088 2.09-.112l-.053.911zm-27.565 2.695c0 1.276-1.19 1.805-2.488 2.013v.9c2.735-.276 4.48-1.361 4.48-2.96v-.076c0-1.86-1.237-3.473-4.156-3.53 0 0-1.05-.043-1.657-.043h-3.933l.17 1.022c.548.06 1.274.12 1.734.152.042 1.277.172 6.544.085 8.039-.312.068-1.346.276-1.74.374l-.097.895c.39-.025 6.03-.024 6.446 0l-.05-.771c-.401-.107-1.85-.369-2.219-.458-.05-.353-.152-7.805-.13-8.13.586 0 1.658.027 2.123.15 1.117.297 1.432 1.5 1.432 2.251M42.058 5.921c-.742.072-3.827.762-4.865.983-1.11.297-11.767 8.616-12.434 10.537-.147.666 0 7.82 0 7.82l6.025.402-.212 1.984c-.867-.06-6.457-.05-9.961-.05-1.777 0-7.198.198-9.028.145l.228-1.89c1.143.095 2.886-.084 3.954-.368 1.068-.283 1.831-.708 1.831-1.776v-6.206C17.226 16.394 8.364 5.259 6.07 3.486c-.667-.223-5.034-.698-6.07-.918L.216.704H20.44l-.292 1.715c-.888.222-5.17.305-6.28.599 2.888 4.286 7.456 9.804 8.937 11.948.814-1.183 8.564-6.596 8.786-8.294-1.11-.22-4.79-.75-5.381-.75l-.352-1.9H43.32l-1.262 1.9zm43.075 16.178c-3.186-.19-8.778-.11-12.074 0l.195-1.683c.496-.05 3.101-.462 3.762-.556v-5.757c-1.586 0-10.448.192-11.847.548v5.173s3.818.438 4.71.533l-.205 1.746c-3.476-.193-10.393-.2-13.68-.011l.215-1.874c1.031-.028 3.79-.344 4.433-.444.1-1.284.148-3.311.148-5.434v-2.621c0-.889-.047-3.458-.098-4.349-.758-.002-3.923-.298-4.816-.346l.218-1.66c2.857.16 11.673.155 14.103.006l-.25 1.546c-.69.037-3.818.5-4.778.5v4.591h11.847V5.302c-.872-.091-3.007-.566-3.95-.612l.184-1.543c1.98.147 9.811.123 11.908 0l-.146 1.62c-.644.05-2.942.441-3.697.492v14.653s3.345.406 4.04.504l-.222 1.683z"/>
	<path fill="#F03" d="M147.279 17.221h-3.183V.531h7.225l-.648 2.507-3.394 14.183zm-2.398 6.61l-2.185.09.42-3.688 2.179.105 2.036-.076-.428 3.61-2.022-.04z"/>
	<path fill="#F03" d="M111.388 13.783c0-5.291-5.082-8.503-12.816-8.663l-.375-.002-.374.002c-8.207.171-12.747 3.401-12.747 8.69l-.003.08c0 .027 0 .051.003.079.052 4.98 5.012 8.527 12.747 8.689 0 0 .275.004.374.002.1.002.375-.002.375-.002 7.734-.162 12.723-3.497 12.815-8.668l.001-.207m-12.404 6.54c-.266.008-.528.024-.787.036-.259-.012-.52-.028-.787-.035-2.678-.075-7.849-1.6-7.849-6.203v-.463c0-4.606 5.17-6.13 7.85-6.203.266-.008.527-.024.786-.036.259.012.521.028.787.036 2.678.072 7.85 1.597 7.85 6.203v.462c0 4.605-5.172 6.129-7.85 6.204m42.598-8.64l-.003-.096c-.196-5.536-5.54-9.113-14.146-9.295 0 0-.233-.005-.353-.005-.116 0-.35.005-.35.005-8.609.182-13.975 3.516-14.146 9.295v.183c.171 5.781 5.537 9.194 14.146 9.375a10.48 10.48 0 0 0 .703 0c8.605-.18 13.975-3.594 14.146-9.375 0 0 .003-.055.003-.087m-13.323 6.938c-.396.028-.789.04-1.179.043-.39-.004-.781-.015-1.177-.043-2.926-.2-8.231-1.992-8.342-6.941.11-4.95 5.416-6.664 8.342-6.864.396-.025.787-.038 1.177-.042.39.004.783.017 1.18.042 2.926.2 8.23 1.913 8.341 6.864-.11 4.949-5.415 6.741-8.342 6.94m-73.33 5.857c-.896-1.468-4.28-9.787-5.794-13.55l2.778-.434.331-1.421H48.02l.004.013c-1.605.024-8.145-.035-8.864-.077l-.12 1.48 3.358.802s-4.914 9.693-5.895 11.09c-.873.19-3.006.702-3.806.795l-.23 1.79c.661-.093 9.237-.045 10.03 0l.185-1.615-2.99-.706s1.358-2.818 1.545-3.145c.98-.187 6.554-.27 6.554-.27l1.985 5.379s-2.363.364-3.297.41l-.21 1.764c.7 0 12.025-.045 12.352 0l.19-1.586c-.84-.045-3.088-.578-3.882-.719zm-12.962-6.992c.28-.746 2.798-6.084 2.798-6.084l2.37 6.084h-5.168zm82.216 14.36c.222-.545 1.668-3.926 1.668-3.926l1.53 3.938-3.198-.012zm6.74 3.542c-1.12-2.33-2.995-6.908-3.499-8.143l1.338-.179.093-.895-5.534.192-.02.75 1.436.248c-.948 2.065-3.388 7.343-3.813 7.964-.37.13-.826.27-1.27.433l-.09.838c1.27-.07 4.01-.025 4.44 0l.02-.752-1.375-.39s.857-2.066 1.166-2.69c1.068-.014 3.886.013 3.886.013l1.048 2.74s-.976.207-1.701.346l-.125.733c.38 0 5.387-.025 5.565 0l.096-.867c-.46-.097-1.66-.34-1.66-.34zm-29.916-3.541c.223-.546 1.669-3.927 1.669-3.927l1.529 3.938-3.198-.011zm6.741 3.542c-.7-1.457-2.607-6.012-3.477-8.146l1.449-.26.04-.81-5.615.19-.008.742 1.435.249c-.948 2.064-3.4 7.351-3.825 7.972-.464.17-.872.295-1.27.433l-.09.838c1.255-.043 4.012-.025 4.44 0l.021-.753-1.375-.39s.858-2.066 1.167-2.689c1.067-.015 3.884.013 3.884.013l1.049 2.74s-.976.207-1.701.345l-.124.734c.378 0 5.387-.026 5.563 0l.096-.867c-.459-.098-1.659-.34-1.659-.34z"/>
</svg>
```

4つのpathは全てfill=#F03が指定されてるだけの同じ属性のpathなので1つにまとめます

```xml
<svg width="152" height="39" xmlns="http://www.w3.org/2000/svg">
	<path
		fill="#F03"
		d="
		M97.187 25.394c-.374.089-1.751.56-2.155.674-.04 1.268-.245 6.933-.245 6.933-.112 2.638-1.26 4.385-4.299 5.545l-1.097-.27c1.482-.878 2.133-1.649 2.322-2.291.303-.833.455-2.76.455-6.312 0 0-.034-2.68-.1-3.585-.456-.074-2.324-.53-2.9-.657l-.027-.843c1.19.036 3.788.073 4.81.073 1.025-.001 2.271-.051 3.314-.073l-.077.806z 
		M145.68 27.115c-.223.053-.86.2-1.42.317-.034.915.07 7.644.082 9.251 0 .231-.259.35-.469.14-1.459-1.423-6.108-6.679-7.656-8.585-.005 1.19.06 5.98.072 6.867.582.161 1.931.483 2.181.533l.056.958a402.974 402.974 0 0 0-5.13 0l.016-.93c.502-.21.977-.384 1.43-.56.06-.562.053-7.19.056-7.615-.383-.035-1.149-.056-1.676-.08v-1.153a236.29 236.29 0 0 1 3.685 0c1.342 1.523 4.557 5.1 6.187 6.92.017-1.537-.09-5.133-.11-5.753-.278-.051-.91-.113-1.606-.257l-.09-.905c.274.025 2.027.053 2.354.053.327 0 1.787-.088 2.09-.112l-.053.911zm-27.565 2.695c0 1.276-1.19 1.805-2.488 2.013v.9c2.735-.276 4.48-1.361 4.48-2.96v-.076c0-1.86-1.237-3.473-4.156-3.53 0 0-1.05-.043-1.657-.043h-3.933l.17 1.022c.548.06 1.274.12 1.734.152.042 1.277.172 6.544.085 8.039-.312.068-1.346.276-1.74.374l-.097.895c.39-.025 6.03-.024 6.446 0l-.05-.771c-.401-.107-1.85-.369-2.219-.458-.05-.353-.152-7.805-.13-8.13.586 0 1.658.027 2.123.15 1.117.297 1.432 1.5 1.432 2.251M42.058 5.921c-.742.072-3.827.762-4.865.983-1.11.297-11.767 8.616-12.434 10.537-.147.666 0 7.82 0 7.82l6.025.402-.212 1.984c-.867-.06-6.457-.05-9.961-.05-1.777 0-7.198.198-9.028.145l.228-1.89c1.143.095 2.886-.084 3.954-.368 1.068-.283 1.831-.708 1.831-1.776v-6.206C17.226 16.394 8.364 5.259 6.07 3.486c-.667-.223-5.034-.698-6.07-.918L.216.704H20.44l-.292 1.715c-.888.222-5.17.305-6.28.599 2.888 4.286 7.456 9.804 8.937 11.948.814-1.183 8.564-6.596 8.786-8.294-1.11-.22-4.79-.75-5.381-.75l-.352-1.9H43.32l-1.262 1.9zm43.075 16.178c-3.186-.19-8.778-.11-12.074 0l.195-1.683c.496-.05 3.101-.462 3.762-.556v-5.757c-1.586 0-10.448.192-11.847.548v5.173s3.818.438 4.71.533l-.205 1.746c-3.476-.193-10.393-.2-13.68-.011l.215-1.874c1.031-.028 3.79-.344 4.433-.444.1-1.284.148-3.311.148-5.434v-2.621c0-.889-.047-3.458-.098-4.349-.758-.002-3.923-.298-4.816-.346l.218-1.66c2.857.16 11.673.155 14.103.006l-.25 1.546c-.69.037-3.818.5-4.778.5v4.591h11.847V5.302c-.872-.091-3.007-.566-3.95-.612l.184-1.543c1.98.147 9.811.123 11.908 0l-.146 1.62c-.644.05-2.942.441-3.697.492v14.653s3.345.406 4.04.504l-.222 1.683z
		M147.279 17.221h-3.183V.531h7.225l-.648 2.507-3.394 14.183zm-2.398 6.61l-2.185.09.42-3.688 2.179.105 2.036-.076-.428 3.61-2.022-.04z
		M111.388 13.783c0-5.291-5.082-8.503-12.816-8.663l-.375-.002-.374.002c-8.207.171-12.747 3.401-12.747 8.69l-.003.08c0 .027 0 .051.003.079.052 4.98 5.012 8.527 12.747 8.689 0 0 .275.004.374.002.1.002.375-.002.375-.002 7.734-.162 12.723-3.497 12.815-8.668l.001-.207m-12.404 6.54c-.266.008-.528.024-.787.036-.259-.012-.52-.028-.787-.035-2.678-.075-7.849-1.6-7.849-6.203v-.463c0-4.606 5.17-6.13 7.85-6.203.266-.008.527-.024.786-.036.259.012.521.028.787.036 2.678.072 7.85 1.597 7.85 6.203v.462c0 4.605-5.172 6.129-7.85 6.204m42.598-8.64l-.003-.096c-.196-5.536-5.54-9.113-14.146-9.295 0 0-.233-.005-.353-.005-.116 0-.35.005-.35.005-8.609.182-13.975 3.516-14.146 9.295v.183c.171 5.781 5.537 9.194 14.146 9.375a10.48 10.48 0 0 0 .703 0c8.605-.18 13.975-3.594 14.146-9.375 0 0 .003-.055.003-.087m-13.323 6.938c-.396.028-.789.04-1.179.043-.39-.004-.781-.015-1.177-.043-2.926-.2-8.231-1.992-8.342-6.941.11-4.95 5.416-6.664 8.342-6.864.396-.025.787-.038 1.177-.042.39.004.783.017 1.18.042 2.926.2 8.23 1.913 8.341 6.864-.11 4.949-5.415 6.741-8.342 6.94m-73.33 5.857c-.896-1.468-4.28-9.787-5.794-13.55l2.778-.434.331-1.421H48.02l.004.013c-1.605.024-8.145-.035-8.864-.077l-.12 1.48 3.358.802s-4.914 9.693-5.895 11.09c-.873.19-3.006.702-3.806.795l-.23 1.79c.661-.093 9.237-.045 10.03 0l.185-1.615-2.99-.706s1.358-2.818 1.545-3.145c.98-.187 6.554-.27 6.554-.27l1.985 5.379s-2.363.364-3.297.41l-.21 1.764c.7 0 12.025-.045 12.352 0l.19-1.586c-.84-.045-3.088-.578-3.882-.719zm-12.962-6.992c.28-.746 2.798-6.084 2.798-6.084l2.37 6.084h-5.168zm82.216 14.36c.222-.545 1.668-3.926 1.668-3.926l1.53 3.938-3.198-.012zm6.74 3.542c-1.12-2.33-2.995-6.908-3.499-8.143l1.338-.179.093-.895-5.534.192-.02.75 1.436.248c-.948 2.065-3.388 7.343-3.813 7.964-.37.13-.826.27-1.27.433l-.09.838c1.27-.07 4.01-.025 4.44 0l.02-.752-1.375-.39s.857-2.066 1.166-2.69c1.068-.014 3.886.013 3.886.013l1.048 2.74s-.976.207-1.701.346l-.125.733c.38 0 5.387-.025 5.565 0l.096-.867c-.46-.097-1.66-.34-1.66-.34zm-29.916-3.541c.223-.546 1.669-3.927 1.669-3.927l1.529 3.938-3.198-.011zm6.741 3.542c-.7-1.457-2.607-6.012-3.477-8.146l1.449-.26.04-.81-5.615.19-.008.742 1.435.249c-.948 2.064-3.4 7.351-3.825 7.972-.464.17-.872.295-1.27.433l-.09.838c1.255-.043 4.012-.025 4.44 0l.021-.753-1.375-.39s.858-2.066 1.167-2.689c1.067-.015 3.884.013 3.884.013l1.049 2.74s-.976.207-1.701.345l-.124.734c.378 0 5.387-.026 5.563 0l.096-.867c-.459-.098-1.659-.34-1.659-.34z"/>
</svg>
```

余分なホワイトスペースを削除します。これで4,965バイトあります。
5,431バイトから4,965バイト。そんなに縮みませんでした。

```xml
<svg width="152" height="39" xmlns="http://www.w3.org/2000/svg"><path fill="#F03" d="M97.187 25.394c-.374.089-1.751.56-2.155.674-.04 1.268-.245 6.933-.245 6.933-.112 2.638-1.26 4.385-4.299 5.545l-1.097-.27c1.482-.878 2.133-1.649 2.322-2.291.303-.833.455-2.76.455-6.312 0 0-.034-2.68-.1-3.585-.456-.074-2.324-.53-2.9-.657l-.027-.843c1.19.036 3.788.073 4.81.073 1.025-.001 2.271-.051 3.314-.073l-.077.806zM145.68 27.115c-.223.053-.86.2-1.42.317-.034.915.07 7.644.082 9.251 0 .231-.259.35-.469.14-1.459-1.423-6.108-6.679-7.656-8.585-.005 1.19.06 5.98.072 6.867.582.161 1.931.483 2.181.533l.056.958a402.974 402.974 0 0 0-5.13 0l.016-.93c.502-.21.977-.384 1.43-.56.06-.562.053-7.19.056-7.615-.383-.035-1.149-.056-1.676-.08v-1.153a236.29 236.29 0 0 1 3.685 0c1.342 1.523 4.557 5.1 6.187 6.92.017-1.537-.09-5.133-.11-5.753-.278-.051-.91-.113-1.606-.257l-.09-.905c.274.025 2.027.053 2.354.053.327 0 1.787-.088 2.09-.112l-.053.911zm-27.565 2.695c0 1.276-1.19 1.805-2.488 2.013v.9c2.735-.276 4.48-1.361 4.48-2.96v-.076c0-1.86-1.237-3.473-4.156-3.53 0 0-1.05-.043-1.657-.043h-3.933l.17 1.022c.548.06 1.274.12 1.734.152.042 1.277.172 6.544.085 8.039-.312.068-1.346.276-1.74.374l-.097.895c.39-.025 6.03-.024 6.446 0l-.05-.771c-.401-.107-1.85-.369-2.219-.458-.05-.353-.152-7.805-.13-8.13.586 0 1.658.027 2.123.15 1.117.297 1.432 1.5 1.432 2.251M42.058 5.921c-.742.072-3.827.762-4.865.983-1.11.297-11.767 8.616-12.434 10.537-.147.666 0 7.82 0 7.82l6.025.402-.212 1.984c-.867-.06-6.457-.05-9.961-.05-1.777 0-7.198.198-9.028.145l.228-1.89c1.143.095 2.886-.084 3.954-.368 1.068-.283 1.831-.708 1.831-1.776v-6.206C17.226 16.394 8.364 5.259 6.07 3.486c-.667-.223-5.034-.698-6.07-.918L.216.704H20.44l-.292 1.715c-.888.222-5.17.305-6.28.599 2.888 4.286 7.456 9.804 8.937 11.948.814-1.183 8.564-6.596 8.786-8.294-1.11-.22-4.79-.75-5.381-.75l-.352-1.9H43.32l-1.262 1.9zm43.075 16.178c-3.186-.19-8.778-.11-12.074 0l.195-1.683c.496-.05 3.101-.462 3.762-.556v-5.757c-1.586 0-10.448.192-11.847.548v5.173s3.818.438 4.71.533l-.205 1.746c-3.476-.193-10.393-.2-13.68-.011l.215-1.874c1.031-.028 3.79-.344 4.433-.444.1-1.284.148-3.311.148-5.434v-2.621c0-.889-.047-3.458-.098-4.349-.758-.002-3.923-.298-4.816-.346l.218-1.66c2.857.16 11.673.155 14.103.006l-.25 1.546c-.69.037-3.818.5-4.778.5v4.591h11.847V5.302c-.872-.091-3.007-.566-3.95-.612l.184-1.543c1.98.147 9.811.123 11.908 0l-.146 1.62c-.644.05-2.942.441-3.697.492v14.653s3.345.406 4.04.504l-.222 1.683zM147.279 17.221h-3.183V.531h7.225l-.648 2.507-3.394 14.183zm-2.398 6.61l-2.185.09.42-3.688 2.179.105 2.036-.076-.428 3.61-2.022-.04zM111.388 13.783c0-5.291-5.082-8.503-12.816-8.663l-.375-.002-.374.002c-8.207.171-12.747 3.401-12.747 8.69l-.003.08c0 .027 0 .051.003.079.052 4.98 5.012 8.527 12.747 8.689 0 0 .275.004.374.002.1.002.375-.002.375-.002 7.734-.162 12.723-3.497 12.815-8.668l.001-.207m-12.404 6.54c-.266.008-.528.024-.787.036-.259-.012-.52-.028-.787-.035-2.678-.075-7.849-1.6-7.849-6.203v-.463c0-4.606 5.17-6.13 7.85-6.203.266-.008.527-.024.786-.036.259.012.521.028.787.036 2.678.072 7.85 1.597 7.85 6.203v.462c0 4.605-5.172 6.129-7.85 6.204m42.598-8.64l-.003-.096c-.196-5.536-5.54-9.113-14.146-9.295 0 0-.233-.005-.353-.005-.116 0-.35.005-.35.005-8.609.182-13.975 3.516-14.146 9.295v.183c.171 5.781 5.537 9.194 14.146 9.375a10.48 10.48 0 0 0 .703 0c8.605-.18 13.975-3.594 14.146-9.375 0 0 .003-.055.003-.087m-13.323 6.938c-.396.028-.789.04-1.179.043-.39-.004-.781-.015-1.177-.043-2.926-.2-8.231-1.992-8.342-6.941.11-4.95 5.416-6.664 8.342-6.864.396-.025.787-.038 1.177-.042.39.004.783.017 1.18.042 2.926.2 8.23 1.913 8.341 6.864-.11 4.949-5.415 6.741-8.342 6.94m-73.33 5.857c-.896-1.468-4.28-9.787-5.794-13.55l2.778-.434.331-1.421H48.02l.004.013c-1.605.024-8.145-.035-8.864-.077l-.12 1.48 3.358.802s-4.914 9.693-5.895 11.09c-.873.19-3.006.702-3.806.795l-.23 1.79c.661-.093 9.237-.045 10.03 0l.185-1.615-2.99-.706s1.358-2.818 1.545-3.145c.98-.187 6.554-.27 6.554-.27l1.985 5.379s-2.363.364-3.297.41l-.21 1.764c.7 0 12.025-.045 12.352 0l.19-1.586c-.84-.045-3.088-.578-3.882-.719zm-12.962-6.992c.28-.746 2.798-6.084 2.798-6.084l2.37 6.084h-5.168zm82.216 14.36c.222-.545 1.668-3.926 1.668-3.926l1.53 3.938-3.198-.012zm6.74 3.542c-1.12-2.33-2.995-6.908-3.499-8.143l1.338-.179.093-.895-5.534.192-.02.75 1.436.248c-.948 2.065-3.388 7.343-3.813 7.964-.37.13-.826.27-1.27.433l-.09.838c1.27-.07 4.01-.025 4.44 0l.02-.752-1.375-.39s.857-2.066 1.166-2.69c1.068-.014 3.886.013 3.886.013l1.048 2.74s-.976.207-1.701.346l-.125.733c.38 0 5.387-.025 5.565 0l.096-.867c-.46-.097-1.66-.34-1.66-.34zm-29.916-3.541c.223-.546 1.669-3.927 1.669-3.927l1.529 3.938-3.198-.011zm6.741 3.542c-.7-1.457-2.607-6.012-3.477-8.146l1.449-.26.04-.81-5.615.19-.008.742 1.435.249c-.948 2.064-3.4 7.351-3.825 7.972-.464.17-.872.295-1.27.433l-.09.838c1.255-.043 4.012-.025 4.44 0l.021-.753-1.375-.39s.858-2.066 1.167-2.689c1.067-.015 3.884.013 3.884.013l1.049 2.74s-.976.207-1.701.345l-.124.734c.378 0 5.387-.026 5.563 0l.096-.867c-.459-.098-1.659-.34-1.659-.34z"/></svg>
```

パスデータを小数点2で丸めると3,796バイト。
なお小数点1つで丸めると2,313バイトになりますが表示の変化が目立つようになるので2が最適かと。ロゴは厳密さが要求されそうなので2にとどめましたがものによっては1でもありかと思います。

```xml
<svg width="152" height="39" xmlns="http://www.w3.org/2000/svg"><path fill="#F03" d="M97.2 25.4c-.4 0-1.8.6-2.2.7l-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-.3 1.1-2.7h4l1 2.7-1.7.4-.2.7h5.6l.1-.9-1.7-.3z"/></svg>
```

通常はsvgoで最適化するだけで十分ですが、なかには表示上意味をなさない大量のパスデータやbase64化された画像データが混入してる場合もあるので、目視でsvgデータを確認することはそこそこ大事かなと。